summaryrefslogtreecommitdiff
path: root/include/vcl
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2019-12-16 17:50:57 +0100
committerJan Holesovsky <kendy@collabora.com>2019-12-16 23:06:36 +0100
commit589147c64804adc5ceba895510559e2b6806d467 (patch)
treed110fa1d78696bbd5d8aa8aa45747d9404302790 /include/vcl
parent66c1f6bee6f463786540b2e73d52f35461063589 (diff)
android: Don't crash when double-tapping a text box.
Here we were accessing the notification from a destructor; so avoid that when the pDoc is already being destructed. Change-Id: I686bc9acf66788bfed6cf478fc7a1646ca8fd259 Reviewed-on: https://gerrit.libreoffice.org/85235 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Diffstat (limited to 'include/vcl')
-rw-r--r--include/vcl/ITiledRenderable.hxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/vcl/ITiledRenderable.hxx b/include/vcl/ITiledRenderable.hxx
index 63646d5c5df0..a204713dd91b 100644
--- a/include/vcl/ITiledRenderable.hxx
+++ b/include/vcl/ITiledRenderable.hxx
@@ -340,6 +340,15 @@ public:
virtual void completeFunction(int /*nIndex*/)
{
}
+
+ /**
+ * It can happen that the underlying implementation is being disposed, but
+ * somebedy is trying to access the data...
+ */
+ virtual bool isDisposed() const
+ {
+ return false;
+ }
};
} // namespace vcl