summaryrefslogtreecommitdiff
path: root/xmloff/source/draw/shapeexport.cxx
diff options
context:
space:
mode:
authorSascha Ballach <sab@openoffice.org>2001-07-27 09:16:23 +0000
committerSascha Ballach <sab@openoffice.org>2001-07-27 09:16:23 +0000
commit7b807695846883041605554e62a7040af2447d1c (patch)
tree34b0f9122b272b63d6471760267aea749e77ebaa /xmloff/source/draw/shapeexport.cxx
parentf611b52892590e8136712862303d4c819ed916d0 (diff)
#90139#; first get the information and then use the information
Diffstat (limited to 'xmloff/source/draw/shapeexport.cxx')
-rw-r--r--xmloff/source/draw/shapeexport.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/xmloff/source/draw/shapeexport.cxx b/xmloff/source/draw/shapeexport.cxx
index ef088256feca..7d632bfdc6b0 100644
--- a/xmloff/source/draw/shapeexport.cxx
+++ b/xmloff/source/draw/shapeexport.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: shapeexport.cxx,v $
*
- * $Revision: 1.36 $
+ * $Revision: 1.37 $
*
- * last change: $Author: thb $ $Date: 2001-07-24 17:06:07 $
+ * last change: $Author: sab $ $Date: 2001-07-27 10:16:23 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -201,6 +201,11 @@ void XMLShapeExport::collectShapeAutoStyles(const uno::Reference< drawing::XShap
ImplXMLShapeExportInfo& aShapeInfo = (*maCurrentShapesIter).second[nZIndex];
+ // -----------------------------
+ // first compute the shapes type
+ // -----------------------------
+ ImpCalcShapeType(xShape, aShapeInfo.meShapeType);
+
const sal_Bool bObjSupportsText =
aShapeInfo.meShapeType != XmlShapeTypeDrawControlShape &&
aShapeInfo.meShapeType != XmlShapeTypeDrawChartShape &&
@@ -213,11 +218,6 @@ void XMLShapeExport::collectShapeAutoStyles(const uno::Reference< drawing::XShap
aShapeInfo.meShapeType != XmlShapeTypeDraw3DLatheObject &&
aShapeInfo.meShapeType != XmlShapeTypeDraw3DExtrudeObject;
- // -----------------------------
- // first compute the shapes type
- // -----------------------------
- ImpCalcShapeType(xShape, aShapeInfo.meShapeType);
-
sal_Bool bIsEmptyPresObj = sal_False;
uno::Reference< beans::XPropertySet > xPropSet(xShape, uno::UNO_QUERY);