diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-11-11 19:37:53 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-11-11 19:51:23 +0100 |
commit | a237e0838196774cceeffe984d614198dbabd21e (patch) | |
tree | c9401aa645680ff04f69f51a5dae0afc04fce248 | |
parent | 63c48a7e0e3debec16dfc7cd04e7eca4c6fbe0ea (diff) |
Copy the original prop/prop unit
...instead of scaling the translated nNewHeight once more by the original prop
Change-Id: Iadb53361a79f0b37b3c7c50066e4cfb7d24ed5e8
-rw-r--r-- | editeng/source/editeng/eertfpar.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/editeng/source/editeng/eertfpar.cxx b/editeng/source/editeng/eertfpar.cxx index 641b5b9f5676..4eb6a03cca58 100644 --- a/editeng/source/editeng/eertfpar.cxx +++ b/editeng/source/editeng/eertfpar.cxx @@ -315,7 +315,10 @@ void EditRTFParser::SetAttrInDoc( SvxRTFItemStackType &rSet ) long nNewHeight; nNewHeight = OutputDevice::LogicToLogic( (long)nHeight, eSrcUnit, eDestUnit ); - SvxFontHeightItem aFntHeightItem( nNewHeight, static_cast<const SvxFontHeightItem*>(pItem)->GetProp(), aFntHeightIems[i] ); + SvxFontHeightItem aFntHeightItem( nNewHeight, 100, aFntHeightIems[i] ); + aFntHeightItem.SetProp( + static_cast<const SvxFontHeightItem*>(pItem)->GetProp(), + static_cast<const SvxFontHeightItem*>(pItem)->GetPropUnit()); rSet.GetAttrSet().Put( aFntHeightItem ); } } |