? viewbox.log ? viewbox.diff Index: ximpshap.cxx =================================================================== RCS file: /cvs/xml/xmloff/source/draw/ximpshap.cxx,v retrieving revision 1.91 diff -u -r1.91 ximpshap.cxx --- ximpshap.cxx 22 Oct 2004 07:55:13 -0000 1.91 +++ ximpshap.cxx 5 Nov 2004 07:51:34 -0000 @@ -1311,9 +1311,13 @@ { SdXMLImExViewBox aViewBox(maViewBox, GetImport().GetMM100UnitConverter()); awt::Size aSize(aViewBox.GetWidth(), aViewBox.GetHeight()); + if (maSize.Width != 0 && maSize.Height !=0) + { + aSize = maSize; + } awt::Point aPosition(aViewBox.GetX(), aViewBox.GetY()); SdXMLImExPointsElement aPoints(maPoints, aViewBox, - aPosition, aSize, GetImport().GetMM100UnitConverter()); + maPosition, aSize, GetImport().GetMM100UnitConverter()); uno::Any aAny; aAny <<= aPoints.GetPointSequenceSequence(); @@ -1384,9 +1388,12 @@ // prepare some of the parameters SdXMLImExViewBox aViewBox(maViewBox, GetImport().GetMM100UnitConverter()); awt::Size aSize(aViewBox.GetWidth(), aViewBox.GetHeight()); - awt::Point aPosition(aViewBox.GetX(), aViewBox.GetY()); + if (maSize.Width != 0 && maSize.Height !=0) + { + aSize = maSize; + } SdXMLImExSvgDElement aPoints(maD, aViewBox, - aPosition, aSize, GetImport().GetMM100UnitConverter()); + maPosition, aSize, GetImport().GetMM100UnitConverter()); char* pService; // now create shape