diff options
author | Maxim Monastirsky <momonasmon@gmail.com> | 2023-03-19 00:16:00 +0200 |
---|---|---|
committer | Maxim Monastirsky <momonasmon@gmail.com> | 2023-03-19 17:40:26 +0000 |
commit | ba58d80a1a9c30e58b20184135e81cc1851bdd75 (patch) | |
tree | 7d373b3970c8d372b706a6f19c8267bf8dc87b77 /sc/inc | |
parent | 01d0019c851b9e942f9a3b94d6dd554fb1adb40c (diff) |
sc drawstyles: Delay the destruction of SdrItemPool
Nowadays SfxItemPool_Impl::mpSecondary is ref counted, so
there is no fear in destroying the draw layer before the doc
pool.
This kind of change is needed for drawing styles, as their
item set references the SdrItemPool with a raw pointer, but
they are destroyed as part of the styles pool, much later
than the draw layer.
Change-Id: I169bbacfbdbec2121217b13293b6f495898fe2e4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149090
Tested-by: Jenkins
Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
Diffstat (limited to 'sc/inc')
-rw-r--r-- | sc/inc/document.hxx | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx index 137b786e8c8b..9c6e376acca5 100644 --- a/sc/inc/document.hxx +++ b/sc/inc/document.hxx @@ -2673,7 +2673,6 @@ private: void ImplCreateOptions(); // Suggestion: switch to on-demand? void ImplDeleteOptions(); - void DeleteDrawLayer(); SC_DLLPUBLIC bool DrawGetPrintArea( ScRange& rRange, bool bSetHor, bool bSetVer ) const; void UpdateDrawPrinter(); |