[Libreoffice-commits] .: sfx2/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Tue Aug 21 11:37:58 PDT 2012


 sfx2/source/control/templateview.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 6f37f7f06b1b4810d0cee025a3502e3282c25986
Author: Rafael Dominguez <venccsralph at gmail.com>
Date:   Tue Aug 21 13:35:20 2012 -0430

    setFontAttribute on TextLayouterDevice for templateview title.
    
    Change-Id: I963994f6c20995ea9d1037cadb6c17a43e8a28c9

diff --git a/sfx2/source/control/templateview.cxx b/sfx2/source/control/templateview.cxx
index bc13853..e2c7960 100644
--- a/sfx2/source/control/templateview.cxx
+++ b/sfx2/source/control/templateview.cxx
@@ -184,6 +184,9 @@ void TemplateView::MouseButtonDown (const MouseEvent &rMEvt)
         else
         {
             drawinglayer::primitive2d::TextLayouterDevice aTextDev;
+            aTextDev.setFontAttribute(mpItemAttrs->aFontAttr,
+                                      mpItemAttrs->aFontSize.getX(), mpItemAttrs->aFontSize.getY(),
+                                      com::sun::star::lang::Locale() );
 
             float fTextWidth = aTextDev.getTextWidth(maName,0,maName.getLength());
 


More information about the Libreoffice-commits mailing list