Kaydet (Commit) 15a19d71 authored tarafından Radek Doulik's avatar Radek Doulik

pptx: custom shapes import, ignore close segment after moveto segment

üst e596df57
...@@ -1034,10 +1034,13 @@ Reference< XFastContextHandler > Path2DContext::createFastChildContext( sal_Int3 ...@@ -1034,10 +1034,13 @@ Reference< XFastContextHandler > Path2DContext::createFastChildContext( sal_Int3
{ {
case A_TOKEN( close ) : case A_TOKEN( close ) :
{ {
EnhancedCustomShapeSegment aNewSegment; // ignore close after move to (ppt does seems to do the same, see accentCallout2 preset for example)
aNewSegment.Command = EnhancedCustomShapeSegmentCommand::CLOSESUBPATH; if ( mrSegments.empty() || ( mrSegments.back().Command != EnhancedCustomShapeSegmentCommand::MOVETO ) ) {
aNewSegment.Count = 0; EnhancedCustomShapeSegment aNewSegment;
mrSegments.push_back( aNewSegment ); aNewSegment.Command = EnhancedCustomShapeSegmentCommand::CLOSESUBPATH;
aNewSegment.Count = 0;
mrSegments.push_back( aNewSegment );
}
} }
break; break;
case A_TOKEN( moveTo ) : case A_TOKEN( moveTo ) :
......
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