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

oox customshapepresetdata: allow empty equation list

Change-Id: Ie18c3e631c266d4281df8b92d08ddeaaef20e8d7
üst 0e44c659
......@@ -682,12 +682,15 @@ void CustomShapeProperties::initializePresetDataMap()
else if (aLine == "Equations")
{
aStream.ReadLine(aLine);
comphelper::SequenceAsVector<OUString> aEquations;
if (aLine != "([]string) {}")
{
OString aExpectedPrefix("([]string) { ");
assert(aLine.startsWith(aExpectedPrefix));
comphelper::SequenceAsVector<OUString> aEquations;
OString aValue = aLine.copy(aExpectedPrefix.getLength(), aLine.getLength() - aExpectedPrefix.getLength() - strlen(" }"));
lcl_parseEquations(aEquations, aValue);
}
aPropertyMap.setProperty(PROP_Equations, aEquations.getAsConstList());
}
else if (aLine == "Handles")
......
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