Skip to content
Permalink
Browse files
8261931: IGV: quick search fails on multi-line node labels
Remove line breaks from the 'label' property that is searched on by default.

Reviewed-by: neliasso, xliu, chagedorn
  • Loading branch information
Roberto Castañeda Lozano committed Mar 11, 2021
1 parent 7988c1d commit f6b4ba073f3074e0f24a129be69a1e70e1097e9f
@@ -279,7 +279,7 @@ void removeOutputSlot(OutputSlot s) {
// class NodeQuickSearch in the View module.
for (InputNode n : getSource().getSourceNodes()) {
String label = resolveString(diagram.getNodeText(), n.getProperties());
n.getProperties().setProperty("label", label);
n.getProperties().setProperty("label", label.replaceAll("\\R", " "));
}
}
return lines;

1 comment on commit f6b4ba0

@openjdk-notifier

This comment has been minimized.

Copy link

@openjdk-notifier openjdk-notifier bot commented on f6b4ba0 Mar 11, 2021

Please sign in to comment.