Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


Hi,

I have submitted a patch for review:

    https://gerrit.libreoffice.org/1694

To pull it, you can do:

    git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/94/1694/1

fdo#40465 solve regression when zooming with cursor not visible

Change-Id: If8dfff1a27218c7821823fcad04bab9f924fec70
---
M dictionaries
M sw/source/ui/uiview/viewmdi.cxx
2 files changed, 5 insertions(+), 2 deletions(-)



diff --git a/dictionaries b/dictionaries
index 0f7aa36..9cfd428 160000
--- a/dictionaries
+++ b/dictionaries
-Subproject commit 0f7aa36b2804a7934b4089e50f4225264c46c806
+Subproject commit 9cfd4282a7a522bed2dc4f4b9ede2c8ee444c29b
diff --git a/sw/source/ui/uiview/viewmdi.cxx b/sw/source/ui/uiview/viewmdi.cxx
index 17a1ac5..a60c6f5 100644
--- a/sw/source/ui/uiview/viewmdi.cxx
+++ b/sw/source/ui/uiview/viewmdi.cxx
@@ -64,10 +64,13 @@
 
 void SwView::SetZoom( SvxZoomType eZoomType, short nFactor, sal_Bool bViewOnly )
 {
+    bool bCrsrIsVisible = ( pWrtShell->IsCrsrVisible() == sal_True );
+
     _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/1694
To unsubscribe, visit https://gerrit.libreoffice.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: If8dfff1a27218c7821823fcad04bab9f924fec70
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: master
Gerrit-Owner: Winfried Donkers <osc@dci-electronics.nl>


Context


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.