diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-11-10 20:37:00 +0000 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2015-11-15 10:49:31 +0000 |
commit | a08a5ff76b78f828367467a0a1610d2f7e63ad75 (patch) | |
tree | 3cc2716f1b973e597327d73b1e8de70fb9e1c14c /svx | |
parent | 82c0f2eb67f8fda9981fe83ebab3d658b6ec85fd (diff) |
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
(cherry picked from commit a7816853bad55ada597092c16ba9a0a761e067d0)
Reviewed-on: https://gerrit.libreoffice.org/19906
Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu>
Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/fmcomp/fmgridif.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/svx/source/fmcomp/fmgridif.cxx b/svx/source/fmcomp/fmgridif.cxx index 85f85134a6da..d3555b9947fa 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<FmGridControl*>(pWin)->SetDesignMode(bOn); } + setVisible(!bOn); + if (bOn) DisConnectFromDispatcher(); else |