Skip to content

Commit 385768e

Browse files
plugins/soi/VerticalProfileViewer: Fix compilation error due to change of message enum for wind.
1 parent a674451 commit 385768e

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

plugins-dev/soi/src/java/pt/lsts/neptus/soi/VerticalProfileViewer.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,8 @@ public void paintProfileDetails(VerticalProfile p, Graphics2D g, StateRenderer2D
192192
case CHLOROPHYLL:
193193
typeUnitStr = " (µg/l)";
194194
break;
195-
case ABSOLUTE_WIND:
195+
case ABSOLUTE_WIND_AVG:
196+
case ABSOLUTE_WIND_MAX:
196197
typeUnitStr = " (m/s)";
197198
depthOrientationStr = "Dir (°)";
198199
depthOrOrientation = false;
@@ -295,8 +296,11 @@ public void paintProfileIcon(VerticalProfile p, Graphics2D g, StateRenderer2D re
295296
case CURRENT_VELOCITY_V:
296297
g.drawString("CVV", (int) pt.getX() - 5, (int) pt.getY() - 5);
297298
break;
298-
case ABSOLUTE_WIND:
299-
g.drawString("AW", (int) pt.getX() - 5, (int) pt.getY() - 5);
299+
case ABSOLUTE_WIND_AVG:
300+
g.drawString("AWA", (int) pt.getX() - 5, (int) pt.getY() - 5);
301+
break;
302+
case ABSOLUTE_WIND_MAX:
303+
g.drawString("AWM", (int) pt.getX() - 5, (int) pt.getY() - 5);
300304
break;
301305
case DISS_ORGANIC_MATTER:
302306
g.drawString("DOM", (int) pt.getX() - 5, (int) pt.getY() - 5);

0 commit comments

Comments
 (0)