summaryrefslogtreecommitdiffstats
path: root/desktop
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-09-02 10:02:46 +0100
committerMichael Stahl <Michael.Stahl@cib.de>2019-09-03 10:36:10 +0200
commite4e6aa95e84314173518137eba988623125712b9 (patch)
tree9e2d8f75492fd2e317ae8d481a96f6497e01e7d8 /desktop
parenttdf#124083 OOXML import: fix broken charts with missing value X (diff)
downloadcore-e4e6aa95e84314173518137eba988623125712b9.tar.gz
core-e4e6aa95e84314173518137eba988623125712b9.zip
Resolves: tdf#126042 measure text width with the bold font it will render with
Change-Id: I81cc0351e652c632bd85efa6dacb36be66fcfb3c Reviewed-on: https://gerrit.libreoffice.org/78390 Tested-by: Jenkins Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/deployment/gui/dp_gui_extlistbox.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop/source/deployment/gui/dp_gui_extlistbox.cxx b/desktop/source/deployment/gui/dp_gui_extlistbox.cxx
index 560d83a95d06..3fb65ffb3fa3 100644
--- a/desktop/source/deployment/gui/dp_gui_extlistbox.cxx
+++ b/desktop/source/deployment/gui/dp_gui_extlistbox.cxx
@@ -443,11 +443,11 @@ void ExtensionBox_Impl::DrawRow(vcl::RenderContext& rRenderContext, const tools:
nMaxTitleWidth -= nLinkWidth + (2 * SPACE_BETWEEN);
}
long aVersionWidth = rRenderContext.GetTextWidth(rEntry->m_sVersion);
- long aTitleWidth = rRenderContext.GetTextWidth(rEntry->m_sTitle) + (aTextHeight / 3);
aPos = rRect.TopLeft() + Point(ICON_OFFSET, TOP_OFFSET);
rRenderContext.SetFont(aBoldFont);
+ long aTitleWidth = rRenderContext.GetTextWidth(rEntry->m_sTitle) + (aTextHeight / 3);
if (aTitleWidth > nMaxTitleWidth - aVersionWidth)
{
aTitleWidth = nMaxTitleWidth - aVersionWidth - (aTextHeight / 3);