summaryrefslogtreecommitdiffstats
path: root/chart2/source/controller/main/PositionAndSizeHelper.cxx
diff options
context:
space:
mode:
authorBalazs Varga <balazs.varga991@gmail.com>2019-11-21 14:56:43 +0100
committerLászló Németh <nemeth@numbertext.org>2019-11-27 12:02:50 +0100
commit739ed2c29f49ea5e83bcd1352b2644c2e2d09f7b (patch)
tree1df3153f300af63631410770638beebf5ea916fc /chart2/source/controller/main/PositionAndSizeHelper.cxx
parenttdf#118947 sw tablestyle: manually scan parents for ::SET (diff)
downloadcore-739ed2c29f49ea5e83bcd1352b2644c2e2d09f7b.tar.gz
core-739ed2c29f49ea5e83bcd1352b2644c2e2d09f7b.zip
tdf#115630 tdf#88922 Chart: fix custom legend position and size
Do not need to set the "AnchorPosition" value, when we move the legend object. It is enough to set only the "Expansion" as custom, so we keep the previously set "AnchorPosition" value and we can use the lcl_calculatePositionAndRemainingSpace function to calculate the remaining space of the inner chart area. Change-Id: I7b577bc6acf2de9b6755329b92603ea5ba631d57 Reviewed-on: https://gerrit.libreoffice.org/83399 Tested-by: Jenkins Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'chart2/source/controller/main/PositionAndSizeHelper.cxx')
-rw-r--r--chart2/source/controller/main/PositionAndSizeHelper.cxx1
1 files changed, 0 insertions, 1 deletions
diff --git a/chart2/source/controller/main/PositionAndSizeHelper.cxx b/chart2/source/controller/main/PositionAndSizeHelper.cxx
index 40972d47c3f4..d9100c839a14 100644
--- a/chart2/source/controller/main/PositionAndSizeHelper.cxx
+++ b/chart2/source/controller/main/PositionAndSizeHelper.cxx
@@ -72,7 +72,6 @@ bool PositionAndSizeHelper::moveObject( ObjectType eObjectType
}
else if(eObjectType==OBJECTTYPE_LEGEND)
{
- xObjectProp->setPropertyValue( "AnchorPosition", uno::Any(LegendPosition_CUSTOM));
xObjectProp->setPropertyValue( "Expansion", uno::Any(css::chart::ChartLegendExpansion_CUSTOM));
chart2::RelativePosition aRelativePosition;
chart2::RelativeSize aRelativeSize;