[Libreoffice-commits] core.git: oox/source
Grzegorz Araminowicz
g.araminowicz at gmail.com
Thu Jun 29 08:57:28 UTC 2017
oox/source/drawingml/diagram/diagramlayoutatoms.cxx | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
New commits:
commit 98befbb26217b0bf3f35354e418a355280c52cfc
Author: Grzegorz Araminowicz <g.araminowicz at gmail.com>
Date: Wed Jun 28 18:38:17 2017 +0200
SmartArt: undo diagram elements' size change
it should fix integer overflow in fdo79822.docx until we have
proper layout algorithm implemented
Change-Id: I7645ff0844ac47a004a309d1a9d3b19eeb3708dc
Reviewed-on: https://gerrit.libreoffice.org/39371
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
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; nPara<pTextBody->getParagraphs().size(); ++nPara )
{
More information about the Libreoffice-commits
mailing list