summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDawid Pakuła2018-05-13 12:04:24 -0400
committerDawid Pakuła2018-05-13 12:04:24 -0400
commit8854563167abd0c7657e18f92d6c38f9183b58e4 (patch)
tree47c61d205ce06d841ae62591693422e3db1ab4ef
parent21e09ed2277bf1d734da6db507ebed9ac1d9d075 (diff)
downloadeclipse.platform.text-8854563167abd0c7657e18f92d6c38f9183b58e4.zip
eclipse.platform.text-8854563167abd0c7657e18f92d6c38f9183b58e4.tar.gz
eclipse.platform.text-8854563167abd0c7657e18f92d6c38f9183b58e4.tar.xz
Make sure line rules are already disposed before recreate on mac Signed-off-by: Dawid Pakuła <zulus@w3des.net>
-rw-r--r--org.eclipse.jface.text/src/org/eclipse/jface/text/source/LineNumberRulerColumn.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/text/source/LineNumberRulerColumn.java b/org.eclipse.jface.text/src/org/eclipse/jface/text/source/LineNumberRulerColumn.java
index 87491b0..092e246 100644
--- a/org.eclipse.jface.text/src/org/eclipse/jface/text/source/LineNumberRulerColumn.java
+++ b/org.eclipse.jface.text/src/org/eclipse/jface/text/source/LineNumberRulerColumn.java
@@ -708,7 +708,7 @@ public class LineNumberRulerColumn implements IVerticalRulerColumn {
if (fBuffer != null) {
Rectangle r= fBuffer.getBounds();
- if (r.width != size.x || r.height != size.y) {
+ if (IS_MAC_BUG_516293 || r.width != size.x || r.height != size.y) {
fBuffer.dispose();
fBuffer= null;
}