summaryrefslogtreecommitdiff
path: root/xmloff/source
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff/source')
-rw-r--r--xmloff/source/draw/shapeexport4.cxx15
1 files changed, 8 insertions, 7 deletions
diff --git a/xmloff/source/draw/shapeexport4.cxx b/xmloff/source/draw/shapeexport4.cxx
index 03ed4320fc68..07076e303914 100644
--- a/xmloff/source/draw/shapeexport4.cxx
+++ b/xmloff/source/draw/shapeexport4.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: shapeexport4.cxx,v $
*
- * $Revision: 1.17 $
+ * $Revision: 1.18 $
*
- * last change: $Author: hr $ $Date: 2007-06-27 15:06:49 $
+ * last change: $Author: hr $ $Date: 2007-08-02 18:19:35 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -259,6 +259,7 @@ void ImpExportHandles( SvXMLExport& rExport, const uno::Sequence< beans::Propert
for ( i = 0; i < nElements; i++ )
{
+ sal_Bool bPosition = sal_False;
const uno::Sequence< beans::PropertyValue >& rPropSeq = rHandles[ i ];
for ( j = 0; j < (sal_uInt32)rPropSeq.getLength(); j++ )
{
@@ -274,6 +275,7 @@ void ImpExportHandles( SvXMLExport& rExport, const uno::Sequence< beans::Propert
ExportParameter( aStrBuffer, aPosition.Second );
aStr = aStrBuffer.makeStringAndClear();
rExport.AddAttribute( XML_NAMESPACE_DRAW, XML_HANDLE_POSITION, aStr );
+ bPosition = sal_True;
}
}
break;
@@ -383,13 +385,12 @@ void ImpExportHandles( SvXMLExport& rExport, const uno::Sequence< beans::Propert
break;
}
}
- SvXMLElementExport aOBJ( rExport, XML_NAMESPACE_DRAW, XML_HANDLE, sal_True, sal_True );
+ if ( bPosition )
+ SvXMLElementExport aOBJ( rExport, XML_NAMESPACE_DRAW, XML_HANDLE, sal_True, sal_True );
+ else
+ rExport.ClearAttrList();
}
}
- else
- {
- SvXMLElementExport aOBJ( rExport, XML_NAMESPACE_DRAW, XML_HANDLE, sal_True, sal_True );
- }
}
void ImpExportEnhancedPath( SvXMLExport& rExport,