diff options
author | Andrey Loskutov | 2021-08-19 14:46:34 +0000 |
---|---|---|
committer | Andrey Loskutov | 2021-08-20 16:51:45 +0000 |
commit | 61bd659e2e7fe076ada6016455618c26ce05d533 (patch) | |
tree | 5d64f2273fe62fc0ba5ea8998ba50d7592a14f11 | |
parent | 2694c048b49189c100239a1c7e35cce7a79082d3 (diff) | |
download | eclipse.platform.text-I20210830-1800.tar.gz eclipse.platform.text-I20210830-1800.tar.xz eclipse.platform.text-I20210830-1800.zip |
Bug 575509 - IllegalArgumentException in OverviewRuler.doPaintY20210914-1140Y20210914-1110Y20210914-0800Y20210913-0800Y20210912-0800Y20210911-0800Y20210910-0800Y20210909-0800Y20210908-0800Y20210907-0830Y20210907-0800Y20210906-0920Y20210904-0800Y20210903-0800Y20210902-0850Y20210902-0350Y20210901-0420Y20210831-0840Y20210826-0800Y20210824-0940Y20210824-0840Y20210822-0440S4_21_0_RC2aS4_21_0_RC2S4_21_0_RC1aS4_21_0_RC1R4_21I20210906-0500I20210901-1800I20210901-0600I20210831-1800I20210831-0600I20210830-1800I20210830-0600I20210829-1800I20210829-0600I20210828-1800I20210828-0600I20210827-1800I20210825-1800I20210825-0600I20210824-1800I20210824-0600I20210823-1800I20210823-0600I20210822-1800I20210822-0600I20210821-1800I20210821-0600I20210820-1800R4_21_maintenance
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.java | 4 |
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 } } } |