diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-05-22 13:15:14 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2015-06-19 18:08:09 +0200 |
commit | fab1dbe9a04e8925b35571f3ad6a27b45dcee84e (patch) | |
tree | 2c45eb8fb3e469a0fa2be129d4e02e1821985513 /svx | |
parent | ee8b32ebbedc2d236fea51c74870efd37476b97b (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.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx index 5cb576266e10..cd942a04f558 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)) |