From 9c18fdd9187e7e190939d68a5d684214a8491624 Mon Sep 17 00:00:00 2001 From: Tavmjong Bah Date: Wed, 7 Nov 2018 16:51:08 +0100 Subject: Replace Broken Image xpm by SVG. --- src/object/sp-object.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/object/sp-object.cpp') 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); } -- cgit v1.2.3