summaryrefslogtreecommitdiff
path: root/svx/source/unodraw/unopage.cxx
diff options
context:
space:
mode:
authorArmin Weiss <aw@openoffice.org>2001-06-12 12:20:39 +0000
committerArmin Weiss <aw@openoffice.org>2001-06-12 12:20:39 +0000
commit4e2bbe63b971227730f34ecb34b6037fb4e94205 (patch)
treea3101ff4349bf098c99d4767934be6b5b0580cf9 /svx/source/unodraw/unopage.cxx
parent5d3a57bfad3b451f3e81cb8c2d4483107ad1a5b8 (diff)
#87922# To avoid that CreateGeometry(...) sets the DoubleSided
item at once, use a closed poylgon.
Diffstat (limited to 'svx/source/unodraw/unopage.cxx')
-rw-r--r--svx/source/unodraw/unopage.cxx16
1 files changed, 14 insertions, 2 deletions
diff --git a/svx/source/unodraw/unopage.cxx b/svx/source/unodraw/unopage.cxx
index dd93533fea3c..1f32d13eacd5 100644
--- a/svx/source/unodraw/unopage.cxx
+++ b/svx/source/unodraw/unopage.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: unopage.cxx,v $
*
- * $Revision: 1.14 $
+ * $Revision: 1.15 $
*
- * last change: $Author: cl $ $Date: 2001-05-14 11:38:52 $
+ * last change: $Author: aw $ $Date: 2001-06-12 13:20:39 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -513,6 +513,12 @@ SdrObject *SvxDrawPage::_CreateSdrObject( const Reference< drawing::XShape > & x
aNewP[0] = Vector3D(0,0,0);
aNewP[1] = Vector3D(0,1,0);
aNewP[2] = Vector3D(1,0,0);
+
+ // #87922#
+ // To avoid that CreateGeometry(...) sets the DoubleSided
+ // item at once, use a closed poylgon.
+ aNewP.SetClosed(TRUE);
+
PolyPolygon3D aNewPP(aNewP);
pObj->SetExtrudePolygon(aNewPP);
pObj->SetExtrudeCharacterMode(TRUE);
@@ -524,6 +530,12 @@ SdrObject *SvxDrawPage::_CreateSdrObject( const Reference< drawing::XShape > & x
aNewP[0] = Vector3D(0,0,0);
aNewP[1] = Vector3D(0,1,0);
aNewP[2] = Vector3D(1,0,0);
+
+ // #87922#
+ // To avoid that CreateGeometry(...) sets the DoubleSided
+ // item at once, use a closed poylgon.
+ aNewP.SetClosed(TRUE);
+
PolyPolygon3D aNewPP(aNewP);
pObj->SetPolyPoly3D(aNewPP);
pObj->SetLatheCharacterMode(TRUE);