summaryrefslogtreecommitdiffstats
path: root/src/object/sp-object.cpp
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2018-11-07 15:51:08 +0000
committerTavmjong Bah <tavmjong@free.fr>2018-11-07 15:51:08 +0000
commit9c18fdd9187e7e190939d68a5d684214a8491624 (patch)
tree2aefe703d31703bbd64addd5162d23e3741178b5 /src/object/sp-object.cpp
parentAllow symbolic icons in default icon theme (diff)
downloadinkscape-9c18fdd9187e7e190939d68a5d684214a8491624.tar.gz
inkscape-9c18fdd9187e7e190939d68a5d684214a8491624.zip
Replace Broken Image xpm by SVG.
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);
}