Skip to content

Commit 14d39d1

Browse files
committed
reverting c9e9260
1 parent f69b994 commit 14d39d1

File tree

1 file changed

+15
-18
lines changed

1 file changed

+15
-18
lines changed

src/core/raster/qgsrasterrenderer.cpp

+15-18
Original file line numberDiff line numberDiff line change
@@ -191,48 +191,45 @@ QString QgsRasterRenderer::minMaxOriginLabel( int theOrigin )
191191
return tr( "User defined" );
192192
}
193193

194-
QString label;
195-
QString est_exact;
196-
QString values;
197-
QString extent;
198-
194+
QString name;
199195
if ( theOrigin & MinMaxEstimated )
200196
{
201-
est_exact = tr( "Estimated" );
197+
name += tr( "Estimated" );
202198
}
203199
else if ( theOrigin & MinMaxExact )
204200
{
205-
est_exact = tr( "Exact" );
201+
name += tr( "Exact" );
206202
}
207203

204+
name += " ";
205+
208206
if ( theOrigin & MinMaxMinMax )
209207
{
210-
values = tr( "min / max" );
208+
name += tr( "min / max" );
211209
}
212210
else if ( theOrigin & MinMaxCumulativeCut )
213211
{
214-
values = tr( "cumulative cut" );
212+
name += "cumulative cut";
215213
}
216214
else if ( theOrigin & MinMaxStdDev )
217215
{
218-
values = tr( "standard deviation" );
216+
name += "standard deviation";
219217
}
220218

219+
name += " " + tr( " of " ) + " ";
220+
221221
if ( theOrigin & MinMaxFullExtent )
222222
{
223-
extent = tr( "full extent" );
223+
name += "full extent";
224224
}
225225
else if ( theOrigin & MinMaxSubExtent )
226226
{
227-
extent = tr( "sub extent" );
227+
name += "sub extent";
228228
}
229229

230-
label = tr( "%1 %2 of %3.",
231-
"min/max origin label in raster properties, where %1 - estimated/exact, %2 - values (min/max, stddev, etc.), %3 - extent" )
232-
.arg(est_exact)
233-
.arg(values)
234-
.arg(extent);
235-
return label;
230+
name += ".";
231+
232+
return name;
236233
}
237234

238235
int QgsRasterRenderer::minMaxOriginFromName( QString theName )

0 commit comments

Comments
 (0)