desktop/source/deployment/gui/dp_gui_extlistbox.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 1485bcc796dd8bd53762368ec4a1345ddb7cda72
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Mon Sep 2 10:02:46 2019 +0100
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Mon Sep 2 12:05:09 2019 +0200

    Resolves: tdf#126042 measure text width with the bold font it will render 
with
    
    Change-Id: I81cc0351e652c632bd85efa6dacb36be66fcfb3c
    Reviewed-on: https://gerrit.libreoffice.org/78385
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>
    Tested-by: Caolán McNamara <caol...@redhat.com>

diff --git a/desktop/source/deployment/gui/dp_gui_extlistbox.cxx 
b/desktop/source/deployment/gui/dp_gui_extlistbox.cxx
index 6a7c87a6d3d0..1f74612e1729 100644
--- a/desktop/source/deployment/gui/dp_gui_extlistbox.cxx
+++ b/desktop/source/deployment/gui/dp_gui_extlistbox.cxx
@@ -444,11 +444,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);
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to