Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Loskutov2021-08-19 10:46:34 -0400
committerAndrey Loskutov2021-08-20 12:51:45 -0400
commit61bd659e2e7fe076ada6016455618c26ce05d533 (patch)
tree5d64f2273fe62fc0ba5ea8998ba50d7592a14f11
parent2694c048b49189c100239a1c7e35cce7a79082d3 (diff)
downloadeclipse.platform.text-R4_21_maintenance.tar.gz
eclipse.platform.text-R4_21_maintenance.tar.xz
eclipse.platform.text-R4_21_maintenance.zip
Change-Id: Ic75b78a48eb00576ef5f30df9c659fbdb7c3a1b2 Signed-off-by: Andrey Loskutov <loskutov@gmx.de> Reviewed-on: https://git.eclipse.org/r/c/platform/eclipse.platform.text/+/184239 Reviewed-by: Mickael Istria <mistria@redhat.com>
-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 14693a304..74e7ce7a8 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