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
This commit is contained in:
parent
89587e6cf1
commit
4dd8aa2630
1 changed files with 7 additions and 3 deletions
|
@ -466,9 +466,13 @@ void VMLExport::Commit( EscherPropertyContainer& rProps, const Rectangle& rRect
|
|||
aPath.append( "e" );
|
||||
break;
|
||||
default:
|
||||
#if OSL_DEBUG_LEVEL > 0
|
||||
fprintf( stderr, "TODO: unhandled segment '%x' in the path\n", nSeg );
|
||||
#endif
|
||||
// See EscherPropertyContainer::CreateCustomShapeProperties, by default nSeg is simply the number of points.
|
||||
for (int i = 0; i < nSeg; ++i)
|
||||
{
|
||||
sal_Int32 nX = impl_GetPointComponent(pVerticesIt, nPointSize);
|
||||
sal_Int32 nY = impl_GetPointComponent(pVerticesIt, nPointSize);
|
||||
aPath.append("l").append(nX).append(",").append(nY);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue