Skip to content

Commit f6b4ba0

Browse files
committed
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
1 parent 7988c1d commit f6b4ba0

File tree

1 file changed

+1
-1
lines changed
  • src/utils/IdealGraphVisualizer/Graph/src/com/sun/hotspot/igv/graph

1 file changed

+1
-1
lines changed

src/utils/IdealGraphVisualizer/Graph/src/com/sun/hotspot/igv/graph/Figure.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ public String[] getLines() {
279279
// class NodeQuickSearch in the View module.
280280
for (InputNode n : getSource().getSourceNodes()) {
281281
String label = resolveString(diagram.getNodeText(), n.getProperties());
282-
n.getProperties().setProperty("label", label);
282+
n.getProperties().setProperty("label", label.replaceAll("\\R", " "));
283283
}
284284
}
285285
return lines;

0 commit comments

Comments
 (0)