summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-11-11 19:37:53 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-11-11 19:51:23 +0100
commita237e0838196774cceeffe984d614198dbabd21e (patch)
treec9401aa645680ff04f69f51a5dae0afc04fce248 /editeng
parent63c48a7e0e3debec16dfc7cd04e7eca4c6fbe0ea (diff)
Copy the original prop/prop unit
...instead of scaling the translated nNewHeight once more by the original prop Change-Id: Iadb53361a79f0b37b3c7c50066e4cfb7d24ed5e8
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/editeng/eertfpar.cxx5
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 );
}
}