summaryrefslogtreecommitdiff
path: root/sw/inc/IDocumentState.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-12-06 15:17:38 +0000
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-12-09 16:58:43 +0000
commitd393039655edf9bb884fc2956674badde59d2326 (patch)
tree116091a5ee4d94ba6d3bd5d5049f3956290ce7d8 /sw/inc/IDocumentState.hxx
parentf212bd45a7c7d97fb16380cd9fa7c6abbfb71e05 (diff)
Resolves: rhbz#1401082 gnome hangs opening a certain .docx
this seems to be a problem since.... commit 199eb08be994ef968eb38f4966bc27ef1756d382 Author: Miklos Vajna <vmiklos@collabora.co.uk> Date: Thu Jun 5 16:25:01 2014 +0200 SwAnchoredDrawObject::GetObjBoundRect: avoid SwDoc::SetModified() This is a const method, but it does a const_cast to still resize an object... if that's so, then we should ensure that the "is modified" flag of SwDoc is untouched. CppunitTest_sw_ooxmlimport's testChartSize is a reproducer for this, when shape text is imported as textbox. (note under gtk3 and wayland this isn't as noticable, there use export GDK_BACKEND=x11 to reproduce the freeze effect where even the mouse cursor doesn't move during part of the load) Change-Id: Ic0bd98b032dfe1255d79d8070d50f65fcfa676dd Reviewed-on: https://gerrit.libreoffice.org/31687 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'sw/inc/IDocumentState.hxx')
-rw-r--r--sw/inc/IDocumentState.hxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sw/inc/IDocumentState.hxx b/sw/inc/IDocumentState.hxx
index 6c4ecaabaa57..eeab2efa9e1d 100644
--- a/sw/inc/IDocumentState.hxx
+++ b/sw/inc/IDocumentState.hxx
@@ -49,6 +49,9 @@ public:
virtual void SetLoaded() = 0;
+ virtual bool IsEnableSetModified() const = 0;
+ virtual void SetEnableSetModified(bool bEnableSetModified) = 0;
+
protected:
virtual ~IDocumentState() {};
};