summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorSilenio Quarti2013-03-27 17:40:29 (EDT)
committer Carolyn MacLeod2013-04-09 10:57:01 (EDT)
commitff673f7b8c50ee2141d3e6c45754b4e0b93a2580 (patch)
tree357fb12b6b2c4a48571cf6bf7cf8ee5a88d6a0ad
parent3f9213d4528539e1ae27d29da532ba0c1a2e98d9 (diff)
downloadeclipse.platform.swt-ff673f7b8c50ee2141d3e6c45754b4e0b93a2580.zip
eclipse.platform.swt-ff673f7b8c50ee2141d3e6c45754b4e0b93a2580.tar.gz
eclipse.platform.swt-ff673f7b8c50ee2141d3e6c45754b4e0b93a2580.tar.bz2
Bug 403559 - Intermittent loss of caret (or cursor?)
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/OleControlSite.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/OleControlSite.java b/bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/OleControlSite.java
index ccb511c..f538848 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/OleControlSite.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/OleControlSite.java
@@ -732,8 +732,7 @@ void onFocusOut(Event e) {
OS.ShowCaret (lpgui1.hwndCaret);
}
}
- }
- if (lpgui1.hwndFocus != 0 && lpgui1.hwndFocus == OS.GetFocus()) {
+ } else if (lpgui1.hwndFocus != 0 && lpgui1.hwndFocus == OS.GetFocus()) {
OS.SendMessage (lpgui1.hwndFocus, SWT_RESTORECARET, 0, 0);
}
}