Kaydet (Commit) 6f37f7f0 authored tarafından Rafael Dominguez's avatar Rafael Dominguez

setFontAttribute on TextLayouterDevice for templateview title.

Change-Id: I963994f6c20995ea9d1037cadb6c17a43e8a28c9
üst 1bdccc59
...@@ -184,6 +184,9 @@ void TemplateView::MouseButtonDown (const MouseEvent &rMEvt) ...@@ -184,6 +184,9 @@ void TemplateView::MouseButtonDown (const MouseEvent &rMEvt)
else else
{ {
drawinglayer::primitive2d::TextLayouterDevice aTextDev; 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()); float fTextWidth = aTextDev.getTextWidth(maName,0,maName.getLength());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment