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:56:06 +0100 |
commit | 9b8247bd179b939dc62af75432bc1cc03de13c0e (patch) | |
tree | 838df592bc7bf55e3a3b24c99ae2b3ad34704024 | |
parent | 143c102df00d8ae84094ffd13454dffaa6fc6c7a (diff) |
fdo#40465 solve regression when zooming with cursor not visible
Change-Id: If8dfff1a27218c7821823fcad04bab9f924fec70
(cherry picked from commit fa058a4cd6580d5538c49d565499fb5cc4ecfe53)
Signed-off-by: Michael Stahl <mstahl@redhat.com>
-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, |