summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-05-22 13:15:14 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-05-22 13:15:14 +0100
commit73b30df7847a00b5236fea11283cf256e4950102 (patch)
tree3a9b1d6506dee20d88ffc712e4d8879b82bff8af /svx
parent1bb71c41b4a6e9a1d84b5b3a08fcf09f5b4a7ef0 (diff)
Avoid overflowing SetSizePixel computation
...near the end of SetupEntry, which appears to not be needed here Change-Id: Ia273df8a22d26974572d8e9be8de2a27936ee496
Diffstat (limited to 'svx')
-rw-r--r--svx/source/tbxctrls/tbcontrl.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx
index 491ce3a11997..47410965edd1 100644
--- a/svx/source/tbxctrls/tbcontrl.cxx
+++ b/svx/source/tbxctrls/tbcontrl.cxx
@@ -800,7 +800,7 @@ void SvxStyleBox_Impl::CalcOptimalExtraUserWidth()
OUString sStyleName(GetEntry(i));
Push(PushFlags::FILLCOLOR | PushFlags::FONT | PushFlags::TEXTCOLOR);
- SetupEntry(i, Rectangle(0, 0, RECT_MAX, ITEM_HEIGHT), this, sStyleName, false);
+ SetupEntry(i, Rectangle(0, 0, RECT_MAX, ITEM_HEIGHT), this, sStyleName, true);
Rectangle aTextRectForActualFont;
GetTextBoundRect(aTextRectForActualFont, sStyleName);
if (AdjustFontForItemHeight(this, aTextRectForActualFont, ITEM_HEIGHT))