svx/source/tbxctrls/tbcontrl.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit d65d9c546125ab999d645a921731170d60fa14ee Author: Yousuf Philips <philip...@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.mehrbr...@cib.de> Tested-by: Samuel Mehrbrodt <samuel.mehrbr...@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); } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits