diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2018-11-07 15:51:08 +0000 |
|---|---|---|
| committer | Tavmjong Bah <tavmjong@free.fr> | 2018-11-07 15:51:08 +0000 |
| commit | 9c18fdd9187e7e190939d68a5d684214a8491624 (patch) | |
| tree | 2aefe703d31703bbd64addd5162d23e3741178b5 /src/object/sp-object.cpp | |
| parent | Allow symbolic icons in default icon theme (diff) | |
| download | inkscape-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.cpp | 5 |
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); } |
