summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorTamas Bunth <tamas.bunth@collabora.co.uk>2020-01-01 15:31:40 +0100
committerTamás Bunth <btomi96@gmail.com>2020-01-01 17:36:04 +0100
commitfa0df1035bbede2ad93b08366abb1d7a508bd3d6 (patch)
treedc3a3f031fb6ecce681b523a5a98276bec7137e0 /oox
parent7d2c7e7af04d9604d86d2d605ef95b9abb10966c (diff)
tdf#125444 Percentage as custom chart label
Support importing ooxml charts with a field of type "PERCENTAGE" as custom label. Change-Id: Ie8931f77e3b6199d98635422d11d776e675f6e5c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86067 Tested-by: Jenkins Reviewed-by: Tamás Bunth <btomi96@gmail.com>
Diffstat (limited to 'oox')
-rw-r--r--oox/source/drawingml/chart/seriesconverter.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/oox/source/drawingml/chart/seriesconverter.cxx b/oox/source/drawingml/chart/seriesconverter.cxx
index a310549e0535..10edab47fd11 100644
--- a/oox/source/drawingml/chart/seriesconverter.cxx
+++ b/oox/source/drawingml/chart/seriesconverter.cxx
@@ -245,6 +245,8 @@ DataPointCustomLabelFieldType lcl_ConvertFieldNameToFieldEnum( const OUString& r
return DataPointCustomLabelFieldType::DataPointCustomLabelFieldType_CATEGORYNAME;
else if (rField == "CELLREF")
return DataPointCustomLabelFieldType::DataPointCustomLabelFieldType_CELLREF;
+ else if (rField == "PERCENTAGE")
+ return DataPointCustomLabelFieldType::DataPointCustomLabelFieldType_PERCENTAGE;
else
return DataPointCustomLabelFieldType::DataPointCustomLabelFieldType_TEXT;
}