summaryrefslogtreecommitdiff
path: root/vcl/source/app
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-12-19 22:22:18 +0000
committerCaolán McNamara <caolanm@redhat.com>2020-12-20 17:36:53 +0100
commita0bf3da7a610e35862878687fed01b63ee5e5308 (patch)
tree3a2e015c4abe71133eab55e6a7d76c271ad076b9 /vcl/source/app
parentc75bc340346cd75c03cd87da66c46bf0c8482df8 (diff)
tdf#139063 crash when add a new sheet to a RTL sheet
Change-Id: Icbfb45036f93ed92e5c83039cd4c3b536f0df0d4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108036 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/source/app')
-rw-r--r--vcl/source/app/weldutils.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/source/app/weldutils.cxx b/vcl/source/app/weldutils.cxx
index bce1f478a1f1..836f6220e222 100644
--- a/vcl/source/app/weldutils.cxx
+++ b/vcl/source/app/weldutils.cxx
@@ -576,7 +576,10 @@ IMPL_LINK(ButtonPressRepeater, MousePressHdl, const MouseEvent&, rMouseEvent, bo
m_bModKey = rMouseEvent.IsMod1();
if (!m_rButton.get_sensitive())
return false;
+ auto self = weak_from_this();
RepeatTimerHdl(nullptr);
+ if (!self.lock())
+ return false;
if (!m_rButton.get_sensitive())
return false;
m_aRepeat.SetTimeout(MouseSettings::GetButtonStartRepeat());