File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -229,7 +229,7 @@ void QgsSingleBandPseudoColorRendererWidget::autoLabel()
229
229
}
230
230
else if ( currentItem->text ( ValueColumn ).toDouble () == std::numeric_limits<double >::infinity () )
231
231
{
232
- label = " > " + mColormapTreeWidget ->topLevelItem ( i - 1 )->text ( ValueColumn );
232
+ label = " > " + mColormapTreeWidget ->topLevelItem ( i - 1 )->text ( ValueColumn ) + unit ;
233
233
}
234
234
else
235
235
{
@@ -272,6 +272,10 @@ void QgsSingleBandPseudoColorRendererWidget::setUnitFromLabels()
272
272
{
273
273
label = " <= " + currentItem->text ( ValueColumn );
274
274
}
275
+ else if ( currentItem->text ( ValueColumn ).toDouble () == std::numeric_limits<double >::infinity () )
276
+ {
277
+ label = " > " + mColormapTreeWidget ->topLevelItem ( i - 1 )->text ( ValueColumn );
278
+ }
275
279
else
276
280
{
277
281
label = mColormapTreeWidget ->topLevelItem ( i - 1 )->text ( ValueColumn ) + " - " + currentItem->text ( ValueColumn );
You can’t perform that action at this time.
0 commit comments