Skip to content

Commit

Permalink
downscale of raster layer pixmap (for bug #84)
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@5299 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Apr 18, 2006
1 parent 54681bd commit b600858
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/raster/qgsrasterlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit b600858

Please sign in to comment.