# HG changeset patch # User Dan Stowell # Date 1286978428 -3600 # Node ID 95cf0d0f93af7c6b24b922d71f117fc5dd29fd85 # Parent 462e4f59c2617f95a001ebc66d36c9131dd3f0f0 Ignore hidden layers when exporting image - closes sf.net #3041878. (Commit is originally from my github copy, commit 03a966c7849335a059e7) diff -r 462e4f59c261 -r 95cf0d0f93af view/View.cpp --- a/view/View.cpp Fri Oct 08 13:30:52 2010 +0100 +++ b/view/View.cpp Wed Oct 13 15:00:28 2010 +0100 @@ -2276,21 +2276,23 @@ for (LayerList::iterator i = m_layers.begin(); i != m_layers.end(); ++i) { - - paint.setRenderHint(QPainter::Antialiasing, false); - - paint.save(); - paint.translate(xorigin + x, 0); - - std::cerr << "Centre frame now: " << m_centreFrame << " drawing to " << chunk.x() + x + xorigin << ", " << chunk.width() << std::endl; - - (*i)->setSynchronousPainting(true); - - (*i)->paint(this, paint, chunk); - - (*i)->setSynchronousPainting(false); - - paint.restore(); + if(!((*i)->isLayerDormant(this))){ + + paint.setRenderHint(QPainter::Antialiasing, false); + + paint.save(); + paint.translate(xorigin + x, 0); + + std::cerr << "Centre frame now: " << m_centreFrame << " drawing to " << chunk.x() + x + xorigin << ", " << chunk.width() << std::endl; + + (*i)->setSynchronousPainting(true); + + (*i)->paint(this, paint, chunk); + + (*i)->setSynchronousPainting(false); + + paint.restore(); + } } }