summaryrefslogtreecommitdiff
path: root/writerfilter/source/rtftok/rtfsdrimport.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'writerfilter/source/rtftok/rtfsdrimport.cxx')
-rw-r--r--writerfilter/source/rtftok/rtfsdrimport.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/writerfilter/source/rtftok/rtfsdrimport.cxx b/writerfilter/source/rtftok/rtfsdrimport.cxx
index 3d9df8b1aaf0..84d541ee2f51 100644
--- a/writerfilter/source/rtftok/rtfsdrimport.cxx
+++ b/writerfilter/source/rtftok/rtfsdrimport.cxx
@@ -450,9 +450,9 @@ void RTFSdrImport::resolve(RTFShape& rShape, bool bClose)
aViewBox.Height = i->second.toInt32();
else if ( i->first == "dhgt" )
{
- resolveDhgt(xPropertySet, i->second.toInt32());
- // dhgt is Word 2007, \shpz is Word 97-2003, the previous has priority.
- rShape.oZ.reset();
+ // dhgt is Word 2007, \shpz is Word 97-2003, the later has priority.
+ if (!rShape.oZ)
+ resolveDhgt(xPropertySet, i->second.toInt32());
}
// These are in EMU, convert to mm100.
else if (i->first == "dxTextLeft")