diff options
author | Balazs Varga <balazs.varga991@gmail.com> | 2020-06-17 15:07:53 +0200 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2020-06-26 16:00:44 +0200 |
commit | f6604dd2cfbc6d4041ef019951a7f1341197ee26 (patch) | |
tree | 8aa3595a8bd437584365324baa0576f2066428e0 /chart2/source/view/inc | |
parent | 0ebdd6ebad2332d38f95e6b1848fcdd53973084e (diff) |
tdf#134039 Chart view: fix moving pie chart area
Do not allow to move data labels, when we create
data series for the first time, in case of pie or
donut chart, but allow to move when we recreate
data series for pie or donut chart.
Change-Id: If0d61116da1524d15553f8a80453ce2003484d1c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96534
Tested-by: Jenkins
Tested-by: László Németh <nemeth@numbertext.org>
Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'chart2/source/view/inc')
-rw-r--r-- | chart2/source/view/inc/VSeriesPlotter.hxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/chart2/source/view/inc/VSeriesPlotter.hxx b/chart2/source/view/inc/VSeriesPlotter.hxx index aa87abb4f2c9..7e60be2bdf1b 100644 --- a/chart2/source/view/inc/VSeriesPlotter.hxx +++ b/chart2/source/view/inc/VSeriesPlotter.hxx @@ -241,6 +241,7 @@ public: //better performance for big data void setCoordinateSystemResolution( const css::uno::Sequence< sal_Int32 >& rCoordinateSystemResolution ); bool PointsWereSkipped() const { return m_bPointsWereSkipped;} + void setPieLabelsAllowToMove( bool bIsPieOrDonut ) { m_bPieLabelsAllowToMove = bIsPieOrDonut; }; //return the depth for a logic 1 double getTransformedDepth() const; @@ -422,6 +423,7 @@ protected: //better performance for big data css::uno::Sequence< sal_Int32 > m_aCoordinateSystemResolution; bool m_bPointsWereSkipped; + bool m_bPieLabelsAllowToMove; private: typedef std::map< sal_Int32 , ExplicitScaleData > tSecondaryValueScales; |