summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-11-10 20:37:00 +0000
committerAndras Timar <andras.timar@collabora.com>2015-11-16 19:07:38 +0100
commit7c7acde337bbd31809ff07d51d82f51e91708325 (patch)
tree74ff78dd38d2886c293ddcff597d54f117a165c7
parent27c521e5448809889cc8211ba503b69585c0a4be (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> (cherry picked from commit a08a5ff76b78f828367467a0a1610d2f7e63ad75)
-rw-r--r--svx/source/fmcomp/fmgridif.cxx2
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