Index: ximpshap.cxx =================================================================== RCS file: /cvs/xml/xmloff/source/draw/ximpshap.cxx,v retrieving revision 1.95 diff -u -r1.95 ximpshap.cxx --- ximpshap.cxx 26 Nov 2004 19:34:06 -0000 1.95 +++ ximpshap.cxx 16 Dec 2004 11:04:20 -0000 @@ -2,9 +2,9 @@ * * $RCSfile: ximpshap.cxx,v $ * - * $Revision: 1.95 $ + * $Revision: 1.95.22.1 $ * - * last change: $Author: rt $ $Date: 2004/11/26 19:34:06 $ + * last change: $Author: windly $ $Date: 2004/12/15 10:52:26 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1313,6 +1313,10 @@ { 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()); @@ -1387,6 +1391,10 @@ 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());