summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAttila Bakos (NISZ) <bakos.attilakaroly@nisz.hu>2021-07-01 14:30:05 +0200
committerLászló Németh <nemeth@numbertext.org>2021-07-01 17:12:32 +0200
commite190196f255b7d0147d61fd967a2b2a61a932185 (patch)
treee6faf5bd6cbee3f185c9869fc6578d4895146ec6
parentd703131d063c41b8baca01830c4c9806f99ab7d2 (diff)
tdf#143028 DOCX export: fix RangeY regression of preset shapes
Use property name "RangeYMaximum" instead of "RangeXMaximum" in GetAdjustmentPointYValue(). Regression from commit 99a459dfdfd9f82ed3506708e131dd52a1a62384 (tdf#143028 DOCX: fix corrupt export of shape "bracePair" etc.) Thanks to Regina Henschel for reporting the problem. Change-Id: I2bdc4be9338d0fe4973a209ee97a4d5880aaac6e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118223 Tested-by: László Németh <nemeth@numbertext.org> Reviewed-by: László Németh <nemeth@numbertext.org>
-rw-r--r--oox/source/export/DMLPresetShapeExport.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/oox/source/export/DMLPresetShapeExport.cxx b/oox/source/export/DMLPresetShapeExport.cxx
index e8d2f26e2e5b..9da095bf2dc3 100644
--- a/oox/source/export/DMLPresetShapeExport.cxx
+++ b/oox/source/export/DMLPresetShapeExport.cxx
@@ -203,7 +203,7 @@ DMLPresetShapeExporter::GetAdjustmentPointYValue(sal_Int32 nPoint)
aRet.nMinVal = GetHandleValueOfModificationPoint(nPoint, u"RangeYMinimum")
.get<EnhancedCustomShapeParameter>()
.Value.get<double>();
- aRet.nMaxVal = GetHandleValueOfModificationPoint(nPoint, u"RangeXMaximum")
+ aRet.nMaxVal = GetHandleValueOfModificationPoint(nPoint, u"RangeYMaximum")
.get<EnhancedCustomShapeParameter>()
.Value.get<double>();
aRet.nCurrVal = GetAdjustmentValues()[aValPos.Second.Value.get<long>()].Value.get<double>();