summaryrefslogtreecommitdiff
path: root/oox/inc
diff options
context:
space:
mode:
authorRegina Henschel <rb.henschel@t-online.de>2022-10-30 22:53:55 +0100
committerRegina Henschel <rb.henschel@t-online.de>2022-10-31 12:20:34 +0100
commitcf972fb9856957f4444199eb97464b83d8dc2698 (patch)
treef6205c76c729807c348528b83a95784f540aaa2d /oox/inc
parent6f32f1a12be06c4da92b807d8a35cb079984e26a (diff)
tdf#113187 exclude angle conversion from count of maGuideList
The ooxml import uses the special viewBox value '0 0 0 0' to indicate that the point coordinates are relative to shape size and not to viewBox and need special treatment. To detect this case the number of guides in maGuideList was used. But that number might be larger than the guides in ooxml because each arcTo command introduces two additional guides for the conversion from 1/60000 degree in ooxml to degree in LibreOffice. The patch excludes these guides from count. Thus now a path which has no references in its points will get a viewBox with non-zero width and height in all cases and is rendered now. Change-Id: I410638a1fe02f692fd46313c88b5ea518f1d094f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142050 Tested-by: Jenkins Reviewed-by: Regina Henschel <rb.henschel@t-online.de>
Diffstat (limited to 'oox/inc')
-rw-r--r--oox/inc/drawingml/customshapeproperties.hxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/oox/inc/drawingml/customshapeproperties.hxx b/oox/inc/drawingml/customshapeproperties.hxx
index c009a0fb7db0..61a151d9aa09 100644
--- a/oox/inc/drawingml/customshapeproperties.hxx
+++ b/oox/inc/drawingml/customshapeproperties.hxx
@@ -123,6 +123,7 @@ public:
static sal_Int32 GetCustomShapeGuideValue( const std::vector< CustomShapeGuide >& rGuideList, std::u16string_view rFormulaName );
sal_Int32 getArcNum() { return mnArcNum++; }
+ sal_Int32 countArcTo() { return mnArcNum; }
/**
Returns whether or not the current CustomShapeProperties