From b329d6f4ce4a594c35125fbe180aed876a66c454 Mon Sep 17 00:00:00 2001
From: Caolán McNamara <caolanm@redhat.com>
Date: Fri, 3 May 2019 10:29:15 +0100
Subject: block/unblock notify events for TextView text/selection change
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

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>
---
 vcl/source/app/salvtables.cxx | 4 ++++
 1 file changed, 4 insertions(+)

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
-- 
cgit