Kaydet (Commit) 24ee3df3 authored tarafından Miklos Vajna's avatar Miklos Vajna

RTF import: fix priority handling of shpz vs dhgt

\shpz is the older markup, dhgt shape property is the newer one. When
having both, dhgt should have priority.

Change-Id: I11904315d13fa23999badad26be26852719dbb3b
üst 36be517a
......@@ -373,7 +373,11 @@ void RTFSdrImport::resolve(RTFShape& rShape)
else if ( i->first == "geoBottom" )
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();
}
// These are in EMU, convert to mm100.
else if (i->first == "dxTextLeft")
xPropertySet->setPropertyValue("LeftBorderDistance", uno::makeAny(i->second.toInt32() / 360));
......
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