summaryrefslogtreecommitdiff
path: root/svx/source/xoutdev/_xpoly.cxx
diff options
context:
space:
mode:
authorSun Ying <sunying@apache.org>2012-09-29 04:44:20 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-06-05 08:59:34 +0100
commit5f554bcec10287659e34b64ddf88813144214e17 (patch)
tree54385d610b905ff97d959398e872ecd61b81f305 /svx/source/xoutdev/_xpoly.cxx
parent3d08f8153a3e7dc6e37aa8b26876ac227c75b1df (diff)
Resolves: #i119860# fix bent connector's type lost when save .ppt file
Reported by: Li Feng Wang Patch by: Ying Sun Review by: Jian Yuan Li (cherry picked from commit 8037c7164c747ea240b563af39a11f4f6bf037ef) Conflicts: filter/source/msfilter/escherex.cxx Change-Id: Iee39fc5c95f354a6fe68cd93b69f40e01d9fa9f8
Diffstat (limited to 'svx/source/xoutdev/_xpoly.cxx')
-rw-r--r--svx/source/xoutdev/_xpoly.cxx38
1 files changed, 38 insertions, 0 deletions
diff --git a/svx/source/xoutdev/_xpoly.cxx b/svx/source/xoutdev/_xpoly.cxx
index 2573ba3367ec..6dd8462b606c 100644
--- a/svx/source/xoutdev/_xpoly.cxx
+++ b/svx/source/xoutdev/_xpoly.cxx
@@ -261,6 +261,32 @@ XPolygon::XPolygon( const XPolygon& rXPoly )
}
/*************************************************************************
+ * |*
+ * |* XPolygon::XPolygon()
+ * |*
+ * |* XPolygon aus einem Standardpolygon erstellen
+ * |* Ersterstellung 18.01.95 ESO
+ * |* Letzte Aenderung 18.01.95 ESO
+ * |*
+ * *************************************************************************/
+
+XPolygon::XPolygon( const Polygon& rPoly )
+{
+ DBG_CTOR(XPolygon,NULL);
+
+ sal_uInt16 nSize = rPoly.GetSize();
+ pImpXPolygon = new ImpXPolygon( nSize );
+ pImpXPolygon->nPoints = nSize;
+
+ for( sal_uInt16 i = 0; i < nSize; i++ )
+ {
+ pImpXPolygon->pPointAry[i] = rPoly[i];
+ pImpXPolygon->pFlagAry[i] = (sal_uInt8) rPoly.GetFlags( i );
+ }
+}
+
+
+/*************************************************************************
|*
|* XPolygon::XPolygon()
|*
@@ -434,6 +460,18 @@ void XPolygon::SetPointCount( sal_uInt16 nPoints )
/*************************************************************************
|*
+|* XPolygon::GetSize()
+|*
+*************************************************************************/
+
+sal_uInt16 XPolygon::GetSize() const
+{
+ pImpXPolygon->CheckPointDelete();
+ return pImpXPolygon->nSize;
+}
+
+/*************************************************************************
+|*
|* XPolygon::GetPointCount()
|*
*************************************************************************/