From a7816853bad55ada597092c16ba9a0a761e067d0 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 10 Nov 2015 20:37:00 +0000 Subject: Resolves: tdf#94069 call setVisible when setDesignMode is called void UnoControl::setDesignMode calls setVisible on the XWindow so it seems sensible that FmXGridPeer::setDesignMode should also do so. The desirable side effect is that moving the window in design mode then is moving a un-shown window so nothing is invalidated so the paint loop doesn't happen. Change-Id: Ic5a4ba62590372bec15a29b993b73d6dfb94a8a9 --- svx/source/fmcomp/fmgridif.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'svx/source') diff --git a/svx/source/fmcomp/fmgridif.cxx b/svx/source/fmcomp/fmgridif.cxx index 61366574fba6..e91d2f32b576 100644 --- a/svx/source/fmcomp/fmgridif.cxx +++ b/svx/source/fmcomp/fmgridif.cxx @@ -1693,6 +1693,8 @@ void FmXGridPeer::setDesignMode(sal_Bool bOn) throw( RuntimeException, std::exce static_cast(pWin)->SetDesignMode(bOn); } + setVisible(!bOn); + if (bOn) DisConnectFromDispatcher(); else -- cgit