summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2021-01-13 10:36:23 +0100
committerSzymon Kłos <szymon.klos@collabora.com>2021-01-13 11:08:01 +0100
commit09f99ae0366ab3f593f17666c9f5860a2fb33538 (patch)
treefcdf928618297314bed9e033013bd8015565b3e5 /include
parentf3bedf92fb8d07114bc3d53d8a01928c77e479fc (diff)
lok: Prevent from crash on cancel Fontwork dialog
Change-Id: Icb24652d6efd46e642efbb91c9941761dd152cab Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109219 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'include')
-rw-r--r--include/svx/fontworkgallery.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/svx/fontworkgallery.hxx b/include/svx/fontworkgallery.hxx
index 54bcb4008e85..9cb79cd80023 100644
--- a/include/svx/fontworkgallery.hxx
+++ b/include/svx/fontworkgallery.hxx
@@ -57,13 +57,14 @@ class SAL_WARN_UNUSED SVX_DLLPUBLIC FontWorkGalleryDialog final : public weld::G
std::unique_ptr<weld::IconView> maCtlFavorites;
std::unique_ptr<weld::Button> mxOKButton;
+ std::unique_ptr<weld::Button> mxCancelButton;
void initFavorites(sal_uInt16 nThemeId);
void insertSelectedFontwork();
void fillFavorites(sal_uInt16 nThemeId);
DECL_LINK(DoubleClickFavoriteHdl, weld::IconView&, bool);
- DECL_LINK(ClickOKHdl, weld::Button&, void );
+ DECL_LINK(ClickButtonHdl, weld::Button&, void );
public:
FontWorkGalleryDialog(weld::Window* pParent, SdrView& rView);