Showing with 4,037 additions and 64 deletions.
  1. +2 −4 src/core/qgsmaplayerregistry.cpp
  2. BIN tests/testdata/expected_maprender.png
  3. +4,035 −60 tests/testdata/maprender_testdata.qml
6 changes: 2 additions & 4 deletions src/core/qgsmaplayerregistry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ QList<QgsMapLayer *> QgsMapLayerRegistry::addMapLayers(
{
mMapLayers[myLayer->id()] = myLayer;
myResultList << mMapLayers[myLayer->id()];
if ( theEmitSignal )
emit layerWasAdded( myLayer );
}
}
if ( theEmitSignal )
Expand All @@ -95,10 +97,6 @@ QgsMapLayerRegistry::addMapLayer( QgsMapLayer * theMapLayer,
QList<QgsMapLayer *> myList;
myList.append(theMapLayer);
addMapLayers(myList, theEmitSignal);

if ( theEmitSignal )
emit layerWasAdded( theMapLayer );

return theMapLayer;
} // QgsMapLayerRegistry::addMapLayer

Expand Down
Binary file modified tests/testdata/expected_maprender.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading