tdf#127907 tdf#126724 Chart DOCX import: fix axis title position
commit86e4d68e62c6291ef386b5fcf0f8912989f8e661
authorBalazs Varga <balazs.varga991@gmail.com>
Tue, 1 Oct 2019 13:37:17 +0000 (1 15:37 +0200)
committerLászló Németh <nemeth@numbertext.org>
Thu, 3 Oct 2019 08:03:06 +0000 (3 10:03 +0200)
tree656110c523f7afa3ea7901df9748d6bd6dde0005
parentb0f2e3880cde52f06913fea55187075fb2c54bba
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>
chart2/qa/extras/chart2import.cxx
chart2/qa/extras/data/docx/testAxisTitlePosition.docx [new file with mode: 0644]
oox/inc/drawingml/chart/converterbase.hxx
oox/source/drawingml/chart/converterbase.cxx