diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-11-09 13:32:24 +0000 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2017-11-20 09:45:30 +0100 |
commit | e9def9676ba4cfa5a89f823811fff6a2f68e242a (patch) | |
tree | 4507db1c1fc561d63052b67c99865ba0908b7b1f /include | |
parent | 3cb4ddd70e4bdfafd75291cc49702c4f6472c4cf (diff) |
Resolves: tdf#113695 crash in color picker after parent is closed
Change-Id: If2217abed784bf24e37e3403fa33cd2663dc51a4
Reviewed-on: https://gerrit.libreoffice.org/44548
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: David Tardon <dtardon@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/svx/colorbox.hxx | 2 | ||||
-rw-r--r-- | include/svx/colorwindow.hxx | 4 | ||||
-rw-r--r-- | include/svx/tbcontrl.hxx | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/include/svx/colorbox.hxx b/include/svx/colorbox.hxx index e2cb74962aad..9a1ed55d5efb 100644 --- a/include/svx/colorbox.hxx +++ b/include/svx/colorbox.hxx @@ -39,7 +39,7 @@ private: NamedColor m_aSelectedColor; sal_uInt16 m_nSlotId; bool m_bShowNoneButton; - std::unique_ptr<PaletteManager> m_xPaletteManager; + std::shared_ptr<PaletteManager> m_xPaletteManager; BorderColorStatus m_aBorderColorStatus; DECL_LINK(MenuActivateHdl, MenuButton *, void); diff --git a/include/svx/colorwindow.hxx b/include/svx/colorwindow.hxx index 520a560880d1..05a3beb72090 100644 --- a/include/svx/colorwindow.hxx +++ b/include/svx/colorwindow.hxx @@ -63,7 +63,7 @@ private: OUString maCommand; Link<const NamedColor&, void> maSelectedLink; - PaletteManager& mrPaletteManager; + std::shared_ptr<PaletteManager> mxPaletteManager; BorderColorStatus& mrBorderColorStatus; ColorSelectFunction maColorSelectFunction; @@ -79,7 +79,7 @@ private: public: SvxColorWindow(const OUString& rCommand, - PaletteManager& rPaletteManager, + std::shared_ptr<PaletteManager>& rPaletteManager, BorderColorStatus& rBorderColorStatus, sal_uInt16 nSlotId, const css::uno::Reference< css::frame::XFrame >& rFrame, diff --git a/include/svx/tbcontrl.hxx b/include/svx/tbcontrl.hxx index 21c21f5e0c10..870a2d816ca9 100644 --- a/include/svx/tbcontrl.hxx +++ b/include/svx/tbcontrl.hxx @@ -207,7 +207,7 @@ class SVX_DLLPUBLIC SvxColorToolBoxControl : public cppu::ImplInheritanceHelper< css::frame::XSubToolbarController > { std::unique_ptr<svx::ToolboxButtonColorUpdater> m_xBtnUpdater; - std::unique_ptr<PaletteManager> m_xPaletteManager; + std::shared_ptr<PaletteManager> m_xPaletteManager; BorderColorStatus m_aBorderColorStatus; bool m_bSplitButton; ColorSelectFunction m_aColorSelectFunction; |