summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/TextLayout.java
diff options
context:
space:
mode:
authorFelipe Heidrich <fheidric>2010-11-08 19:42:12 +0000
committerFelipe Heidrich <fheidric>2010-11-08 19:42:12 +0000
commit4e8fb426aa55775d1635a190ce7e40e2c95849d3 (patch)
tree8485dea434fb5e55fba0f6a4ca8205c44ff486f4 /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/TextLayout.java
parent44faa8d35b72980c9485f058bf1df97ca1ce6922 (diff)
downloadeclipse.platform.swt-4e8fb426aa55775d1635a190ce7e40e2c95849d3.tar.gz
eclipse.platform.swt-4e8fb426aa55775d1635a190ce7e40e2c95849d3.tar.xz
eclipse.platform.swt-4e8fb426aa55775d1635a190ce7e40e2c95849d3.zip
Bug 326644 - StyledText selection erases painted characters behind last character
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/TextLayout.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/TextLayout.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/TextLayout.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/TextLayout.java
index 372b628ae6..72d19ba097 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/TextLayout.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/TextLayout.java
@@ -408,7 +408,7 @@ public void draw(GC gc, int x, int y, int selectionStart, int selectionEnd, Colo
boolean hasSelection = selectionStart <= selectionEnd && selectionStart != -1 && selectionEnd != -1;
GCData data = gc.data;
int /*long*/ cairo = data.cairo;
- if (flags != 0 && (hasSelection || (flags & SWT.LAST_LINE_SELECTION) != 0)) {
+ if ((flags & (SWT.FULL_SELECTION | SWT.DELIMITER_SELECTION)) != 0 && (hasSelection || (flags & SWT.LAST_LINE_SELECTION) != 0)) {
int /*long*/[] attrs = new int /*long*/[1];
int[] nAttrs = new int[1];
PangoLogAttr logAttr = new PangoLogAttr();