Skip to content
Permalink
Browse files

downscale of raster layer pixmap (for bug #84)

git-svn-id: http://svn.osgeo.org/qgis/trunk@5299 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent
mhugent committed Apr 18, 2006
1 parent 54681bd commit b6008580aaa4e290b9a7b8ad25af81864477f13f
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/raster/qgsrasterlayer.cpp
@@ -5060,7 +5060,8 @@ void QgsRasterLayer::refreshLegend()
if(mLegend)
{
std::list< std::pair<QString, QPixmap> > itemList;
itemList.push_back(std::make_pair("", getLegendQPixmap(true)));
QPixmap legendpixmap = getLegendQPixmap(true).scaled(20, 20);
itemList.push_back(std::make_pair("", legendpixmap));
mLegend->changeSymbologySettings(getLayerID(), &itemList);
}
}

0 comments on commit b600858

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