diff options
author | Rafael Dominguez <venccsralph@gmail.com> | 2012-08-21 13:35:20 -0430 |
---|---|---|
committer | Rafael Dominguez <venccsralph@gmail.com> | 2012-08-21 14:04:27 -0430 |
commit | 6f37f7f06b1b4810d0cee025a3502e3282c25986 (patch) | |
tree | e1f6249f091747294221c9162f5048113cfdd0f3 /sfx2 | |
parent | 1bdccc596a220bbb05997c73875987841d79c07c (diff) |
setFontAttribute on TextLayouterDevice for templateview title.
Change-Id: I963994f6c20995ea9d1037cadb6c17a43e8a28c9
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/control/templateview.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sfx2/source/control/templateview.cxx b/sfx2/source/control/templateview.cxx index bc13853cf48a..e2c7960deffd 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()); |