[Libreoffice-commits] core.git: Branch 'libreoffice-5-0' - svx/source

Caolán McNamara caolanm at redhat.com
Sun Nov 15 02:49:57 PST 2015


 svx/source/fmcomp/fmgridif.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit a08a5ff76b78f828367467a0a1610d2f7e63ad75
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Tue Nov 10 20:37:00 2015 +0000

    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 at mamane.lu>
    Tested-by: Jenkins <ci at libreoffice.org>

diff --git a/svx/source/fmcomp/fmgridif.cxx b/svx/source/fmcomp/fmgridif.cxx
index 85f8513..d3555b9 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


More information about the Libreoffice-commits mailing list