summaryrefslogtreecommitdiff
path: root/oox/inc
diff options
context:
space:
mode:
authorBalazs Varga <balazs.varga991@gmail.com>2019-10-01 15:37:17 +0200
committerLászló Németh <nemeth@numbertext.org>2019-10-03 10:03:06 +0200
commit86e4d68e62c6291ef386b5fcf0f8912989f8e661 (patch)
tree656110c523f7afa3ea7901df9748d6bd6dde0005 /oox/inc
parentb0f2e3880cde52f06913fea55187075fb2c54bba (diff)
tdf#127907 tdf#126724 Chart DOCX import: fix axis title position
Custom position of axis title reset to default when the document is opened in LibreOffice. Also fix tdf#126724 which was a regression from commit: 48480d4f19d2fb92ca4ae0527eec4753cdc439c0 (make tools::Rectangle::getBottom return 0 when empty) Note: The y coordinate of Y axis title position is still wrong because of another older bug. Change-Id: I449ad3b2252e05ab38d6752512d822c355ff8606 Reviewed-on: https://gerrit.libreoffice.org/79966 Reviewed-by: László Németh <nemeth@numbertext.org> Tested-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'oox/inc')
-rw-r--r--oox/inc/drawingml/chart/converterbase.hxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/oox/inc/drawingml/chart/converterbase.hxx b/oox/inc/drawingml/chart/converterbase.hxx
index 32e3e95d550e..6af038bb262f 100644
--- a/oox/inc/drawingml/chart/converterbase.hxx
+++ b/oox/inc/drawingml/chart/converterbase.hxx
@@ -85,6 +85,8 @@ protected:
getChartDocument() const;
/** Returns the position and size of the chart shape in 1/100 mm. */
const css::awt::Size& getChartSize() const;
+ /** Returns the default position and size of the chart shape in 1/100 mm. */
+ static css::awt::Size getDefaultPageSize() { return css::awt::Size(16000, 9000); }
/** Returns the object formatter. */
ObjectFormatter& getFormatter() const;