summaryrefslogtreecommitdiff
path: root/include
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 /include
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 'include')
-rw-r--r--include/svx/gridctrl.hxx4
-rw-r--r--include/vcl/weldutils.hxx1
2 files changed, 3 insertions, 2 deletions
diff --git a/include/svx/gridctrl.hxx b/include/svx/gridctrl.hxx
index e09b0a146284..7667d456bd00 100644
--- a/include/svx/gridctrl.hxx
+++ b/include/svx/gridctrl.hxx
@@ -190,8 +190,8 @@ class NavigationBar final : public InterimItemWindow
std::unique_ptr<weld::Button> m_xLastBtn; // Button for 'go to the last record'
std::unique_ptr<weld::Button> m_xNewBtn; // Button for 'go to a new record'
- weld::ButtonPressRepeater m_aPrevRepeater;
- weld::ButtonPressRepeater m_aNextRepeater;
+ std::shared_ptr<weld::ButtonPressRepeater> m_xPrevRepeater;
+ std::shared_ptr<weld::ButtonPressRepeater> m_xNextRepeater;
sal_Int32 m_nCurrentPos;
diff --git a/include/vcl/weldutils.hxx b/include/vcl/weldutils.hxx
index 43461ab6fb51..86af6c6e95ee 100644
--- a/include/vcl/weldutils.hxx
+++ b/include/vcl/weldutils.hxx
@@ -397,6 +397,7 @@ private:
};
class VCL_DLLPUBLIC ButtonPressRepeater final
+ : public std::enable_shared_from_this<ButtonPressRepeater>
{
private:
weld::Button& m_rButton;