Skip to content
Permalink
Browse files

Reverse iterate through the map layers when rendering. Fixes #536.

git-svn-id: http://svn.osgeo.org/qgis/trunk@6427 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
homann
homann committed Jan 13, 2007
1 parent 81a2382 commit 941136b2e190d79c7222a5ef0be00ac0b00370aa
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/core/qgsmaprender.cpp
@@ -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));

@@ -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);

0 comments on commit 941136b

Please sign in to comment.
You can’t perform that action at this time.