summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
Diffstat (limited to 'sw')
-rw-r--r--sw/source/ui/uiview/viewmdi.cxx7
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,