Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org.eclipse.jface.text/src/org/eclipse/jface/text/source/OverviewRuler.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/text/source/OverviewRuler.java b/org.eclipse.jface.text/src/org/eclipse/jface/text/source/OverviewRuler.java
index 14693a3048a..74e7ce7a83d 100644
--- a/org.eclipse.jface.text/src/org/eclipse/jface/text/source/OverviewRuler.java
+++ b/org.eclipse.jface.text/src/org/eclipse/jface/text/source/OverviewRuler.java
@@ -815,7 +815,9 @@ public class OverviewRuler implements IOverviewRulerExtension, IOverviewRuler {
gc.setLineWidth(0); // NOTE: 0 means width is 1 but with optimized performance
gc.drawRectangle(r);
}
- } catch (BadLocationException x) {
+ } catch (BadLocationException | IllegalArgumentException x) {
+ // We don't care if the widget's content is changed since the annotation was created
+ // and do not match the annotation line/offset etc
}
}
}

Back to the top