diff options
Diffstat (limited to 'org.eclipse.jface.text/src/org/eclipse/jface/text/presentation/PresentationReconciler.java')
-rw-r--r-- | org.eclipse.jface.text/src/org/eclipse/jface/text/presentation/PresentationReconciler.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/text/presentation/PresentationReconciler.java b/org.eclipse.jface.text/src/org/eclipse/jface/text/presentation/PresentationReconciler.java index 5fe6030a56f..d8b1922f396 100644 --- a/org.eclipse.jface.text/src/org/eclipse/jface/text/presentation/PresentationReconciler.java +++ b/org.eclipse.jface.text/src/org/eclipse/jface/text/presentation/PresentationReconciler.java @@ -217,7 +217,7 @@ public class PresentationReconciler implements IPresentationReconciler, IPresent /** * Translates the given text event into the corresponding range of the viewer's document. - * + * * @param e the text event * @return the widget region corresponding the region of the given event or * <code>null</code> if none @@ -488,7 +488,7 @@ public class PresentationReconciler implements IPresentationReconciler, IPresent damageStart= Math.min(damageStart, fChangedDocumentPartitions.getOffset()); damageEnd= Math.max(damageEnd, fChangedDocumentPartitions.getOffset() + fChangedDocumentPartitions.getLength()); } - + damage= damageEnd == -1 ? r : new Region(damageStart, damageEnd - damageStart); } |