[Libreoffice-commits] core.git: sfx2/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Wed Aug 26 08:57:29 UTC 2020
sfx2/source/control/thumbnailviewitem.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 65a15721a4e25bae151c84369bd410e65578dcc9
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Tue Aug 25 20:48:34 2020 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Wed Aug 26 10:56:50 2020 +0200
ThumbnailViewItem not guaranteed to measure with the font it will draw with
Change-Id: Ie590a6d7ffc619b1ac5f9b766582a8088e6b8d02
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101370
Tested-by: Caolán McNamara <caolanm at redhat.com>
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/sfx2/source/control/thumbnailviewitem.cxx b/sfx2/source/control/thumbnailviewitem.cxx
index 444d4c3387a5..474f415e73cb 100644
--- a/sfx2/source/control/thumbnailviewitem.cxx
+++ b/sfx2/source/control/thumbnailviewitem.cxx
@@ -216,6 +216,9 @@ void ThumbnailViewItem::addTextPrimitives (const OUString& rText, const Thumbnai
OUString aText (rText);
TextEngine aTextEngine;
+ aTextEngine.SetFont(getVclFontFromFontAttribute(pAttrs->aFontAttr,
+ pAttrs->aFontSize.getX(), pAttrs->aFontSize.getY(), 0,
+ css::lang::Locale()));
aTextEngine.SetMaxTextWidth(maDrawArea.getWidth());
aTextEngine.SetText(rText);
More information about the Libreoffice-commits
mailing list