summaryrefslogtreecommitdiff
path: root/sc/inc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-05-27 13:52:36 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-05-27 13:55:38 +0100
commit3a34f96a16ad3063302670a57a1ed508302e3ffb (patch)
tree44bc8c005d663a5b882c0b5458c73b1ef93a5dae /sc/inc
parent813faac457bb9bd76d826cfc2ae4bf61f6e583b4 (diff)
Resolves: tdf#91416 setting progress -> resize -> destroy formula context
i.e. setting progress triggers ScTabView::DoResize and an InterpretVisible and InterpretDirtyCells which resets the mpFormulaGroupCxt that the current rCxt points to, which is bad, so disable progress for the duration of the GetResult loop Change-Id: I8e88cee4dd2308ef61dee934d300a38978833703 (cherry picked from commit e3c1a394a00cef416a81b89b6d5c204891abb286)
Diffstat (limited to 'sc/inc')
-rw-r--r--sc/inc/progress.hxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sc/inc/progress.hxx b/sc/inc/progress.hxx
index d65c9b56ce37..340c4c18655f 100644
--- a/sc/inc/progress.hxx
+++ b/sc/inc/progress.hxx
@@ -49,6 +49,7 @@ private:
static bool bAllowInterpretProgress;
static ScDocument* pInterpretDoc;
static bool bIdleWasEnabled;
+ bool bEnabled;
SfxProgress* pProgress;
@@ -143,6 +144,9 @@ public:
return pProgress->GetState();
return 0;
}
+ bool Enabled() const { return bEnabled; }
+ void Disable() { bEnabled = false; }
+ void Enable() { bEnabled = true; }
};
#endif