Skip to content
Permalink
Browse files

forgot unit

  • Loading branch information
pierstitus authored and nyalldawson committed Apr 13, 2016
1 parent 02e7d7a commit 791498753d3367137f58bc4a7b3bf275e627cb56
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/gui/raster/qgssinglebandpseudocolorrendererwidget.cpp
@@ -229,7 +229,7 @@ void QgsSingleBandPseudoColorRendererWidget::autoLabel()
}
else if ( currentItem->text( ValueColumn ).toDouble() == std::numeric_limits<double>::infinity() )
{
label = "> " + mColormapTreeWidget->topLevelItem( i - 1 )->text( ValueColumn );
label = "> " + mColormapTreeWidget->topLevelItem( i - 1 )->text( ValueColumn ) + unit;
}
else
{
@@ -272,6 +272,10 @@ void QgsSingleBandPseudoColorRendererWidget::setUnitFromLabels()
{
label = "<= " + currentItem->text( ValueColumn );
}
else if ( currentItem->text( ValueColumn ).toDouble() == std::numeric_limits<double>::infinity() )
{
label = "> " + mColormapTreeWidget->topLevelItem( i - 1 )->text( ValueColumn );
}
else
{
label = mColormapTreeWidget->topLevelItem( i - 1 )->text( ValueColumn ) + " - " + currentItem->text( ValueColumn );

0 comments on commit 7914987

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