diff --git a/oox/source/drawingml/diagram/diagramlayoutatoms.cxx b/oox/source/drawingml/diagram/diagramlayoutatoms.cxx index 9b0896249485..d32e2f963b59 100644 --- a/oox/source/drawingml/diagram/diagramlayoutatoms.cxx +++ b/oox/source/drawingml/diagram/diagramlayoutatoms.cxx @@ -300,8 +300,8 @@ void AlgAtom::layoutShape( const ShapePtr& rShape, aCurrPos.Y + sz.Height); // HACK: the spacing is arbitrary - aCurrPos.X += nIncX*(sz.Width+50); - aCurrPos.Y += nIncY*(sz.Height+50); + aCurrPos.X += nIncX*(sz.Width+5); + aCurrPos.Y += nIncY*(sz.Height+5); ++aCurrShape; } @@ -330,8 +330,8 @@ void AlgAtom::layoutShape( const ShapePtr& rShape, // HACK - count chars & paragraphs to come up with *some* // notion of necessary size - const sal_Int32 nHackyFontHeight=500; - const sal_Int32 nHackyFontWidth=400; + const sal_Int32 nHackyFontHeight=50; + const sal_Int32 nHackyFontWidth=20; awt::Size aTotalSize; for( size_t nPara=0; nParagetParagraphs().size(); ++nPara ) {