Kaydet (Commit) 6b723985 authored tarafından Miklos Vajna's avatar Miklos Vajna

fdo#82859 RTF import: don't try to set CustomShapeGeometry on a TextFrame

Change-Id: I687fa609559f0484fe6bb804265243de154c3760
üst 6c10db81
{\rtf1
{\field
{\*\fldinst SHAPE }
{\fldrslt
{\shp
{\*\shpinst\shpleft-90\shptop720\shpright9404\shpbottom2939\shpwr2\shpbxignore\shpbyignore
{\sp
{\sn shapeType}
{\sv 1}
}
{\sp
{\sn pVerticies}
{\sv 8;4;(0,0);(-2147483645,0);(-2147483645,-2147483646);(0,-2147483646)}
}
{\sp
{\sn pSegmentInfo}
{\sv 2;4;16384;3;24577;32768}
}
{\shptxt hello}
}
}
}
}
\par
}
......@@ -824,7 +824,7 @@ void RTFSdrImport::resolve(RTFShape& rShape, bool bClose, ShapeOrPict const shap
aPropertyValue.Value <<= aPath.getAsConstList();
aGeometry.push_back(aPropertyValue);
}
if (!aGeometry.empty() && xPropertySet.is())
if (!aGeometry.empty() && xPropertySet.is() && !m_bTextFrame)
xPropertySet->setPropertyValue("CustomShapeGeometry", uno::Any(aGeometry.getAsConstList()));
// Set position and size
......
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