]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/listbox.cpp
disallow creation of wxDC objects and made wxDC an ABC; use wxDCTemp instead of wxDC...
[wxWidgets.git] / src / os2 / listbox.cpp
index cd7946293414a799446b9112ad98aac928896692..475e9f814324e616f1a24b46911ac6da174afc0d 100644 (file)
@@ -748,7 +748,7 @@ bool wxListBox::OS2Command(
     {
         eEvtType = wxEVT_COMMAND_LISTBOX_SELECTED;
     }
-    if (uParam == LN_ENTER)
+    else if (uParam == LN_ENTER)
     {
         eEvtType = wxEVT_COMMAND_LISTBOX_DOUBLECLICKED;
     }