diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-11-10 20:37:00 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-11-11 10:54:01 +0000 |
commit | a7816853bad55ada597092c16ba9a0a761e067d0 (patch) | |
tree | c2c6051e5b03be28f842a00fcf68041e35f40539 /svx/source | |
parent | 14c2b509928b7c7a437464c10bd0f57ff307ad54 (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
Diffstat (limited to 'svx/source')
-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 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<FmGridControl*>(pWin)->SetDesignMode(bOn); } + setVisible(!bOn); + if (bOn) DisConnectFromDispatcher(); else |