mirror of
https://github.com/meteoinfo/MeteoInfo.git
synced 2025-12-08 20:36:05 +00:00
bugfix for contourf function when only one level value is valid
This commit is contained in:
parent
89280538a9
commit
b482eac053
@ -5390,7 +5390,11 @@ public class GraphicFactory {
|
||||
}
|
||||
}
|
||||
max = v;
|
||||
min = cValues[valueIdx - 1];
|
||||
if (cValues.length > 1) {
|
||||
min = cValues[valueIdx - 1];
|
||||
} else {
|
||||
min = ls.getMinValue();
|
||||
}
|
||||
}
|
||||
} else if (valueIdx == 0){
|
||||
if (poly.IsHighCenter) {
|
||||
@ -5402,7 +5406,11 @@ public class GraphicFactory {
|
||||
}
|
||||
}
|
||||
min = v;
|
||||
max = cValues[valueIdx + 1];
|
||||
if (cValues.length > 1) {
|
||||
max = cValues[valueIdx + 1];
|
||||
} else {
|
||||
max = ls.getMaxValue();
|
||||
}
|
||||
} else {
|
||||
if (minData < ls.getMinValue()) {
|
||||
switch (extendType) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user