[PATCH] fdo#40465 solve regression when zooming with cursor not visi...

Winfried Donkers (via Code Review) gerrit at gerrit.libreoffice.org
Tue Jan 15 06:11:54 PST 2013


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 at dci-electronics.nl>



More information about the LibreOffice mailing list