diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-12-01 15:19:12 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-12-01 21:28:21 +0100 |
commit | c6aae3f4035f0a2dceba94b1956f5fc0ace3b3ee (patch) | |
tree | dd294a5a4f62f7160fe7c1b131bf597f304e3eb7 /chart2/source/view/main/ChartItemPool.hxx | |
parent | 88397d5cce34bf24fdb90f60befcc48dd4616187 (diff) |
tdf#145599 Charts gets corrupted when you draw a line inside them
This reverts
commit 2ed8c34bca56c1a30d727b21d9096cb77e88197a
use a single global item pool for chart2 draw model
Change-Id: I640a981a2cbbed1cb9e6c0b0c239c78bb481e12e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143526
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2/source/view/main/ChartItemPool.hxx')
-rw-r--r-- | chart2/source/view/main/ChartItemPool.hxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/chart2/source/view/main/ChartItemPool.hxx b/chart2/source/view/main/ChartItemPool.hxx index 2ac440183740..74a7ab1ebb29 100644 --- a/chart2/source/view/main/ChartItemPool.hxx +++ b/chart2/source/view/main/ChartItemPool.hxx @@ -29,18 +29,16 @@ class ChartItemPool : public SfxItemPool private: std::unique_ptr<SfxItemInfo[]> pItemInfos; +public: ChartItemPool(); ChartItemPool(const ChartItemPool& rPool); - -protected: virtual ~ChartItemPool() override; -public: virtual rtl::Reference<SfxItemPool> Clone() const override; MapUnit GetMetric(sal_uInt16 nWhich) const override; - /// get the pure chart item pool - static SfxItemPool& GetGlobalChartItemPool(); + /// creates a pure chart item pool + static rtl::Reference<SfxItemPool> CreateChartItemPool(); }; } // namespace chart |