Repeatedly works on getting the document updated, since sometimes it takes more than one pass to get the document updated. But it usually should not take more than a few loops, and certainly never more than 32 iterations. So we bail out if we hit 32 iterations, since this typically indicates we're stuck in an update loop. Definition at line 827 of file document.cpp. References SPDocument::_updateDocument(), SPDocument::modified_id, and SPDocument::uri. Referenced by Inkscape::UI::Dialog::TileDialog::Grid_Arrange(), SPDesktop::init(), and Inkscape::Trace::Tracer::traceThread(). { int counter = 32; while (!doc->_updateDocument()) { if (counter == 0) { g_warning("More than 32 iteration while updating document '%s'", doc->uri); break; } counter--; } if (doc->modified_id) { /* Remove handler */ gtk_idle_remove(doc->modified_id); doc->modified_id = 0; } return counter>0; }
|