summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-10-31 15:51:30 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-10-31 15:56:14 +0000
commite44335abe006d05f0f915279605a03ef084116d6 (patch)
tree58ef5f2e9889728a6dba0b0d39bc59c6d217e03b /xmloff
parent223f6b631c1b087754c0f9051fb55f029f2503ce (diff)
Related #i123433# PolyPolygonBezier must be drawing::PolyPolygonBezierCoords
Change-Id: Idc7e0a2651f2e0b499bbf8b8443ffb84b54a45b6
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/draw/ximpshap.cxx32
1 files changed, 11 insertions, 21 deletions
diff --git a/xmloff/source/draw/ximpshap.cxx b/xmloff/source/draw/ximpshap.cxx
index fcfb945c6378..c46bc2c95635 100644
--- a/xmloff/source/draw/ximpshap.cxx
+++ b/xmloff/source/draw/ximpshap.cxx
@@ -1459,6 +1459,8 @@ void SdXMLPathShapeContext::StartElement(const uno::Reference< xml::sax::XAttrib
aPolyPolygon,
aSourcePolyPolygon);
aAny <<= aSourcePolyPolygon;
+
+ xPropSet->setPropertyValue(OUString("PolyPolygonBezier"), aAny);
}
else
{
@@ -1468,9 +1470,9 @@ void SdXMLPathShapeContext::StartElement(const uno::Reference< xml::sax::XAttrib
aPolyPolygon,
aSourcePolyPolygon);
aAny <<= aSourcePolyPolygon;
- }
- xPropSet->setPropertyValue(OUString("Geometry"), aAny);
+ xPropSet->setPropertyValue(OUString("Geometry"), aAny);
+ }
}
// set pos, size, shear and rotate
@@ -1832,25 +1834,12 @@ void SdXMLConnectorShapeContext::processAttribute( sal_uInt16 nPrefix, const OUS
{
if(aPolyPolygon.count())
{
- // set polygon data
- if(aPolyPolygon.areControlPointsUsed())
- {
- drawing::PolyPolygonBezierCoords aSourcePolyPolygon;
+ drawing::PolyPolygonBezierCoords aSourcePolyPolygon;
- basegfx::tools::B2DPolyPolygonToUnoPolyPolygonBezierCoords(
- aPolyPolygon,
- aSourcePolyPolygon);
- maPath <<= aSourcePolyPolygon;
- }
- else
- {
- drawing::PointSequenceSequence aSourcePolyPolygon;
-
- basegfx::tools::B2DPolyPolygonToUnoPointSequenceSequence(
- aPolyPolygon,
- aSourcePolyPolygon);
- maPath <<= aSourcePolyPolygon;
- }
+ basegfx::tools::B2DPolyPolygonToUnoPolyPolygonBezierCoords(
+ aPolyPolygon,
+ aSourcePolyPolygon);
+ maPath <<= aSourcePolyPolygon;
}
}
}
@@ -1967,7 +1956,8 @@ void SdXMLConnectorShapeContext::StartElement(const uno::Reference< xml::sax::XA
if ( bApplySVGD )
{
- xProps->setPropertyValue("PolyPolygonBezier", maPath );
+ assert(maPath.getValueType() == ::getCppuType((const drawing::PolyPolygonBezierCoords*)0));
+ xProps->setPropertyValue("PolyPolygonBezier", maPath);
}
}