Skip to content
Permalink
Browse files

Value label for colortable rasters

  • Loading branch information
mhugent committed Jun 14, 2011
1 parent e28d1e4 commit ed6df319edf56cbe8fb78da54cd17af79be4dd49
Showing with 2 additions and 1 deletion.
  1. +1 −0 src/app/qgsrasterlayerproperties.cpp
  2. +1 −1 src/providers/gdal/qgsgdalprovider.cpp
@@ -2406,6 +2406,7 @@ void QgsRasterLayerProperties::on_mClassifyButton_clicked()
QTreeWidgetItem* newItem = new QTreeWidgetItem( mColormapTreeWidget );
newItem->setText( 0, QString::number( *value_it, 'f' ) );
newItem->setBackground( 1, QBrush( *color_it ) );
newItem->setText( 2, QString::number( *value_it, 'f' ) );
newItem->setFlags( Qt::ItemIsEnabled | Qt::ItemIsEditable | Qt::ItemIsSelectable );
}
}
@@ -995,8 +995,8 @@ QList<QgsColorRampShader::ColorRampItem> QgsGdalProvider::colorTable( int theBan
else if ( myColorInterpretation == GCI_PaletteIndex )
{
QgsColorRampShader::ColorRampItem myColorRampItem;
myColorRampItem.label = "";
myColorRampItem.value = ( double )myIterator;
myColorRampItem.label = QString::number( myColorRampItem.value );
//Branch on palette interpretation
if ( myPaletteInterpretation == GPI_RGB )
{

0 comments on commit ed6df31

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