summaryrefslogtreecommitdiffstats
path: root/src/object/sp-object.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/object/sp-object.cpp')
-rw-r--r--src/object/sp-object.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/object/sp-object.cpp b/src/object/sp-object.cpp
index 07c82cbd5..7caab7d70 100644
--- a/src/object/sp-object.cpp
+++ b/src/object/sp-object.cpp
@@ -1170,7 +1170,10 @@ void SPObject::requestDisplayUpdate(unsigned int flags)
{
g_return_if_fail( this->document != nullptr );
- if (update_in_progress) {
+ // update_in_progress is a global variable. It can be come greater than one when reading in a second
+ // document (as in creating the broken image bitmap). It is still an important warning so we don't
+ // remove it entirely. We probably shouldn't be calling requestDisplayUpdate in the set() methods.
+ if (update_in_progress > 2) {
g_print("WARNING: Requested update while update in progress, counter = %d\n", update_in_progress);
}