summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--svx/source/tbxctrls/tbcontrl.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx
index 0b2ef2498d78..ce7d8777273b 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);
}