Skip to content

Commit 7df4577

Browse files
authored
Handle tracenames from legacy xygraph widget
1 parent d38c03c commit 7df4577

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

app/display/model/src/main/java/org/csstudio/display/builder/model/widgets/plots/StripchartWidget.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,12 @@ public boolean configureFromXML(final ModelReader model_reader, final Widget wid
360360

361361
if (! handleLegacyTraces(model_reader, strip, xml, pv_macro))
362362
return false;
363+
364+
// If legend was turned off, clear the trace names since they would
365+
// otherwise show on the Y axes
366+
if (! strip.propLegend().getValue())
367+
for (TraceWidgetProperty trace : strip.propTraces().getValue())
368+
trace.traceName().setValue("");
363369

364370
}
365371
// Stripchart V2.1.0

0 commit comments

Comments
 (0)