Skip to content

Commit

Permalink
Reverse iterate through the map layers when rendering. Fixes #536.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6427 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
homann committed Jan 13, 2007
1 parent 012a8b0 commit d969ca1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/core/qgsmaprender.cpp
Expand Up @@ -210,9 +210,9 @@ void QgsMapRender::render(QPainter* painter)
#endif

// render all layers in the stack, starting at the base
std::deque<QString>::iterator li = mLayerSet.begin();
std::deque<QString>::reverse_iterator li = mLayerSet.rbegin();

while (li != mLayerSet.end())
while (li != mLayerSet.rend())
{
QgsDebugMsg("Rendering at layer item " + (*li));

Expand Down Expand Up @@ -289,8 +289,8 @@ void QgsMapRender::render(QPainter* painter)
if (!mOverview)
{
// render all labels for vector layers in the stack, starting at the base
li = mLayerSet.begin();
while (li != mLayerSet.end())
li = mLayerSet.rbegin();
while (li != mLayerSet.rend())
{
// TODO: emit drawingProgress((myRenderCounter++),zOrder.size());
QgsMapLayer *ml = QgsMapLayerRegistry::instance()->mapLayer(*li);
Expand Down

0 comments on commit d969ca1

Please sign in to comment.