[Libreoffice-commits] core.git: svx/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Wed Mar 18 09:12:35 UTC 2020
svx/source/tbxctrls/tbcontrl.cxx | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
New commits:
commit f493cd83fbb2e572cf3d85aaf57fb202d763756d
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Tue Mar 17 20:25:13 2020 +0000
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Wed Mar 18 10:12:06 2020 +0100
tdf#131389 crash clearing cell bg from sidebar
Change-Id: Id246c176bf44f2eb2d2e135400974c437f583a7f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90669
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx
index b2781adf59fb..38d5574b745a 100644
--- a/svx/source/tbxctrls/tbcontrl.cxx
+++ b/svx/source/tbxctrls/tbcontrl.cxx
@@ -2069,9 +2069,14 @@ IMPL_LINK(ColorWindow, AutoColorClickHdl, weld::Button&, rButton, void)
maSelectedLink.Call(aNamedColor);
- maColorSelectFunction(maCommand, aNamedColor);
+ // deliberate take a copy here in case maMenuButton.set_inactive
+ // triggers a callback that destroys ourself
+ ColorSelectFunction aColorSelectFunction(maColorSelectFunction);
+ OUString sCommand(maCommand);
maMenuButton.set_inactive();
+
+ aColorSelectFunction(sCommand, aNamedColor);
}
IMPL_LINK_NOARG(SvxColorWindow, OpenPickerClickHdl, Button*, void)
More information about the Libreoffice-commits
mailing list