# HG changeset patch # User Chris Cannam # Date 1588178857 -3600 # Node ID f12c25651f96631a2a9cc0b16e6b55f818f4179a # Parent a798a7b5e215a94aed7d2282bafa066ccfc3a4be Debug diff -r a798a7b5e215 -r f12c25651f96 view/View.cpp --- a/view/View.cpp Wed Apr 29 14:46:37 2020 +0100 +++ b/view/View.cpp Wed Apr 29 17:47:37 2020 +0100 @@ -3003,10 +3003,20 @@ bool someLayersIncomplete = false; +#ifdef DEBUG_VIEW + SVDEBUG << "View::render: checking completion" << endl; +#endif + for (LayerList::iterator i = m_layerStack.begin(); i != m_layerStack.end(); ++i) { int c = (*i)->getCompletion(this); + +#ifdef DEBUG_VIEW + SVDEBUG << "layer " << (*i)->getLayerPresentationName() << " says " + << c << endl; +#endif + if (c < 100) { someLayersIncomplete = true; break; @@ -3022,6 +3032,10 @@ while (layerCompletion < 100) { +#ifdef DEBUG_VIEW + SVDEBUG << "View::render: checking completion (again)" << endl; +#endif + for (LayerList::iterator i = m_layerStack.begin(); i != m_layerStack.end(); ++i) { @@ -3029,6 +3043,11 @@ if (i == m_layerStack.begin() || c < layerCompletion) { layerCompletion = c; } + +#ifdef DEBUG_VIEW + SVDEBUG << "layer " << (*i)->getLayerPresentationName() << " says " + << c << ", layerCompletion now " << layerCompletion << endl; +#endif } if (layerCompletion >= 100) break; @@ -3044,6 +3063,10 @@ } } +#ifdef DEBUG_VIEW + SVDEBUG << "View::render: ok, we're ready" << endl; +#endif + QProgressDialog progress(tr("Rendering image..."), tr("Cancel"), 0, w / width(), this);