summaryrefslogtreecommitdiff
path: root/javax/swing/text/html/InlineView.java
diff options
context:
space:
mode:
Diffstat (limited to 'javax/swing/text/html/InlineView.java')
-rw-r--r--javax/swing/text/html/InlineView.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/javax/swing/text/html/InlineView.java b/javax/swing/text/html/InlineView.java
index cea0782b1..58edc7385 100644
--- a/javax/swing/text/html/InlineView.java
+++ b/javax/swing/text/html/InlineView.java
@@ -162,9 +162,8 @@ public class InlineView
public int getBreakWeight(int axis, float pos, float len)
{
int weight;
- if (nowrap) { if (getText(getStartOffset(), getEndOffset()).toString().contains("Web"))
- System.err.println("Web NOWRAP");
- weight = BadBreakWeight;}
+ if (nowrap)
+ weight = BadBreakWeight;
else
weight = super.getBreakWeight(axis, pos, len);
return weight;