Hi,
I have submitted a patch for review:
https://gerrit.libreoffice.org/1698
To pull it, you can do:
git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/98/1698/1
fdo#40465 solve regression when zooming with cursor not visible
(cherry picked from commit fa058a4cd6580d5538c49d565499fb5cc4ecfe53)
Signed-off-by: Michael Stahl <mstahl@redhat.com>
(cherry picked from commit 5aadc1cf65841ce8737ec6602dcc3751e368c395)
Change-Id: If8dfff1a27218c7821823fcad04bab9f924fec70
baf7879ddba3c052e9bfc9a81359cd187c923845
---
M sw/source/ui/uiview/viewmdi.cxx
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/sw/source/ui/uiview/viewmdi.cxx b/sw/source/ui/uiview/viewmdi.cxx
index f600461..ac68198 100644
--- a/sw/source/ui/uiview/viewmdi.cxx
+++ b/sw/source/ui/uiview/viewmdi.cxx
@@ -73,10 +73,11 @@
void SwView::SetZoom( SvxZoomType eZoomType, short nFactor, sal_Bool bViewOnly )
{
+ bool const bCrsrIsVisible(pWrtShell->IsCrsrVisible());
_SetZoom( GetEditWin().GetOutputSizePixel(), eZoomType, nFactor, bViewOnly );
-
- //fdo40465 force the cursor to stay in view whilst zooming
- pWrtShell->ShowCrsr();
+ // fdo#40465 force the cursor to stay in view whilst zooming
+ if (bCrsrIsVisible)
+ pWrtShell->ShowCrsr();
}
void SwView::_SetZoom( const Size &rEditSize, SvxZoomType eZoomType,
--
To view, visit https://gerrit.libreoffice.org/1698
To unsubscribe, visit https://gerrit.libreoffice.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: If8dfff1a27218c7821823fcad04bab9f924fec70
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: libreoffice-3-6-5
Gerrit-Owner: Michael Stahl <mstahl@redhat.com>
Gerrit-Reviewer: Winfried Donkers <osc@dci-electronics.nl>
Context
- [PATCH] Change in core[libreoffice-3-6-5]: fdo#40465 solve regression when zooming with cursor not visi... · Michael Stahl (via Code Review)
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.