diff options
author | Winfried Donkers <osc@dci-electronics.nl> | 2013-01-14 19:53:10 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2013-01-15 15:52:44 +0100 |
commit | fa058a4cd6580d5538c49d565499fb5cc4ecfe53 (patch) | |
tree | 106e30664555e42abd97119be5c87844ed96eed0 | |
parent | 32afbf1ae15426defc2c1b58f754d0e6d5c406e5 (diff) |
fdo#40465 solve regression when zooming with cursor not visible
Change-Id: If8dfff1a27218c7821823fcad04bab9f924fec70
-rw-r--r-- | sw/source/ui/uiview/viewmdi.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sw/source/ui/uiview/viewmdi.cxx b/sw/source/ui/uiview/viewmdi.cxx index 17a1ac5b9eaa..9a791d080716 100644 --- a/sw/source/ui/uiview/viewmdi.cxx +++ b/sw/source/ui/uiview/viewmdi.cxx @@ -64,10 +64,11 @@ using namespace ::com::sun::star::frame; 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, |