diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-05-03 10:29:15 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-05-03 13:38:20 +0200 |
commit | b329d6f4ce4a594c35125fbe180aed876a66c454 (patch) | |
tree | f7657066293732793fc546a3193dfbef87d52ff4 | |
parent | d0aa53964c0dbc8dd6e1ee555f046c3e883e344d (diff) |
block/unblock notify events for TextView text/selection change
Change-Id: I7745c04b9331b98c9c405544fe262c24ed066ddd
Reviewed-on: https://gerrit.libreoffice.org/71731
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | vcl/source/app/salvtables.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/source/app/salvtables.cxx b/vcl/source/app/salvtables.cxx index 72011c1667cf..4ed1d96158e4 100644 --- a/vcl/source/app/salvtables.cxx +++ b/vcl/source/app/salvtables.cxx @@ -3940,12 +3940,16 @@ public: virtual void set_text(const OUString& rText) override { + disable_notify_events(); m_xTextView->SetText(rText); + enable_notify_events(); } virtual void replace_selection(const OUString& rText) override { + disable_notify_events(); m_xTextView->ReplaceSelected(rText); + enable_notify_events(); } virtual OUString get_text() const override |