Skip to content

Commit 7914987

Browse files
pierstitusnyalldawson
authored andcommitted
forgot unit
1 parent 02e7d7a commit 7914987

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/gui/raster/qgssinglebandpseudocolorrendererwidget.cpp

+5-1
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ void QgsSingleBandPseudoColorRendererWidget::autoLabel()
229229
}
230230
else if ( currentItem->text( ValueColumn ).toDouble() == std::numeric_limits<double>::infinity() )
231231
{
232-
label = "> " + mColormapTreeWidget->topLevelItem( i - 1 )->text( ValueColumn );
232+
label = "> " + mColormapTreeWidget->topLevelItem( i - 1 )->text( ValueColumn ) + unit;
233233
}
234234
else
235235
{
@@ -272,6 +272,10 @@ void QgsSingleBandPseudoColorRendererWidget::setUnitFromLabels()
272272
{
273273
label = "<= " + currentItem->text( ValueColumn );
274274
}
275+
else if ( currentItem->text( ValueColumn ).toDouble() == std::numeric_limits<double>::infinity() )
276+
{
277+
label = "> " + mColormapTreeWidget->topLevelItem( i - 1 )->text( ValueColumn );
278+
}
275279
else
276280
{
277281
label = mColormapTreeWidget->topLevelItem( i - 1 )->text( ValueColumn ) + " - " + currentItem->text( ValueColumn );

0 commit comments

Comments
 (0)