[Libreoffice-commits] core.git: svx/source

Yousuf Philips philipz85 at hotmail.com
Wed Nov 25 04:14:58 PST 2015


 svx/source/tbxctrls/tbcontrl.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit d65d9c546125ab999d645a921731170d60fa14ee
Author: Yousuf Philips <philipz85 at hotmail.com>
Date:   Tue Oct 6 20:06:05 2015 +0400

    tdf#76825 Add padding between style render and context button
    
    Change-Id: I2d1185d433be0fbb57a59e0609ab0f505248a348
    Reviewed-on: https://gerrit.libreoffice.org/19210
    Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
    Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>

diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx
index 0b2ef24..ce7d877 100644
--- a/svx/source/tbxctrls/tbcontrl.cxx
+++ b/svx/source/tbxctrls/tbcontrl.cxx
@@ -308,6 +308,7 @@ class SfxStyleControllerItem_Impl : public SfxStatusListener
 };
 
 #define BUTTON_WIDTH 20
+#define BUTTON_PADDING 10
 #define ITEM_HEIGHT 30
 
 SvxStyleBox_Impl::SvxStyleBox_Impl(vcl::Window* pParent,
@@ -827,7 +828,7 @@ IMPL_LINK_TYPED(SvxStyleBox_Impl, CalcOptimalExtraUserWidth, VclWindowEvent&, ev
         }
         Pop();
 
-        const long nWidth = aTextRectForActualFont.GetWidth() + BUTTON_WIDTH;
+        const long nWidth = aTextRectForActualFont.GetWidth() + BUTTON_WIDTH + BUTTON_PADDING;
 
         nMaxUserDrawFontWidth = std::max(nWidth, nMaxUserDrawFontWidth);
     }


More information about the Libreoffice-commits mailing list