# HG changeset patch # User ssadetsky # Date 1438682330 -10800 # Node ID f6daa59ae21198402776d549e3f1e96c1f9c5a3f # Parent 28cc138497172ba0f8bbb633bfe646e4dbec2914 8130892: Test javax/swing/plaf/basic/BasicTextUI/8001470/bug8001470.java fails in Solaris Sparcv9 Reviewed-by: alexsch, serb diff -r 28cc13849717 -r f6daa59ae211 jdk/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTextUI.java --- a/jdk/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTextUI.java Tue Aug 04 12:34:08 2015 +0300 +++ b/jdk/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTextUI.java Tue Aug 04 12:58:50 2015 +0300 @@ -940,7 +940,7 @@ rootView.setSize(d.width - i.left - i.right - caretMargin, d.height - i.top - i.bottom); } - else if (d.width == 0 || d.height == 0) { + else if (d.width <= 0 || d.height <= 0) { // Probably haven't been layed out yet, force some sort of // initial sizing. rootView.setSize(Integer.MAX_VALUE, Integer.MAX_VALUE);