]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/listbox.cpp
Test for result of searching for wxID_CANCEL button
[wxWidgets.git] / src / motif / listbox.cpp
index dc8cf4c10a832ad62891f99546fa5b00c2406abc..db682d40d422c5c0c7def309abd5f91d0c9021ad 100644 (file)
@@ -459,7 +459,7 @@ wxString wxDoGetStringInList( Widget listBox, int n )
                    XmNitemCount, &count,
                    XmNitems, &strlist,
                    NULL );
-    if( n <= count && n >= 0 )
+    if( n < count && n >= 0 )
         return wxXmStringToString( strlist[n] );
     else
         return wxEmptyString;