We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 3ac19d9 commit a877a1aCopy full SHA for a877a1a
src/app/legend/qgslegendlayer.cpp
@@ -454,7 +454,15 @@ QPixmap QgsLegendLayer::getOriginalPixmap() const
454
return QgisApp::getThemePixmap("/mIconLayer.png");
455
}
456
457
- else // RASTER
+ else if (firstLayer->type() == QgsMapLayer::RASTER)
458
+ {
459
+ QgsRasterLayer* rlayer = dynamic_cast<QgsRasterLayer*>(firstLayer);
460
+ QPixmap myPixmap(32,32);
461
+ rlayer->drawThumbnail(&myPixmap);
462
+ return myPixmap;
463
+
464
+ }
465
+ else // undefined - should never reach this
466
{
467
468
0 commit comments