summaryrefslogtreecommitdiff
path: root/javax/swing/text/IconView.java
diff options
context:
space:
mode:
Diffstat (limited to 'javax/swing/text/IconView.java')
-rw-r--r--javax/swing/text/IconView.java2
1 files changed, 0 insertions, 2 deletions
diff --git a/javax/swing/text/IconView.java b/javax/swing/text/IconView.java
index af2581a88..699cda90e 100644
--- a/javax/swing/text/IconView.java
+++ b/javax/swing/text/IconView.java
@@ -130,8 +130,6 @@ public class IconView
throws BadLocationException
{
Element el = getElement();
- if (pos < el.getStartOffset() || pos >= el.getEndOffset())
- throw new BadLocationException("Illegal offset for this view", pos);
Rectangle r = a.getBounds();
Icon icon = StyleConstants.getIcon(el.getAttributes());
return new Rectangle(r.x, r.y, icon.getIconWidth(), icon.getIconHeight());