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

fdo#53113 vml export: handle custom segment types

It seems that EscherPropertyContainer::CreateCustomShapeProperties()
simply sets nSeg to the number of (lineto) point pairs by default.

Change-Id: I24bde088f5f2970d53de827e1ca03c5419ac892c
üst 89587e6c
...@@ -466,9 +466,13 @@ void VMLExport::Commit( EscherPropertyContainer& rProps, const Rectangle& rRect ...@@ -466,9 +466,13 @@ void VMLExport::Commit( EscherPropertyContainer& rProps, const Rectangle& rRect
aPath.append( "e" ); aPath.append( "e" );
break; break;
default: default:
#if OSL_DEBUG_LEVEL > 0 // See EscherPropertyContainer::CreateCustomShapeProperties, by default nSeg is simply the number of points.
fprintf( stderr, "TODO: unhandled segment '%x' in the path\n", nSeg ); for (int i = 0; i < nSeg; ++i)
#endif {
sal_Int32 nX = impl_GetPointComponent(pVerticesIt, nPointSize);
sal_Int32 nY = impl_GetPointComponent(pVerticesIt, nPointSize);
aPath.append("l").append(nX).append(",").append(nY);
}
break; break;
} }
} }
......
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