aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2001-12-13 11:08:19 +0000
committernyamatongwe <devnull@localhost>2001-12-13 11:08:19 +0000
commitdd3c63c5d78699b80416f8080f4ade9612549654 (patch)
tree899d9a409ec686531d16b7d85e4310e8494881e4
parentb3bfd2fc2090e61b1d2f49cc66a1bed3487d8f2a (diff)
downloadscintilla-mirror-dd3c63c5d78699b80416f8080f4ade9612549654.tar.gz
Patch from Alan Knowles to avoid warning caused by not choosing an item
from an autocompletion list.
-rw-r--r--gtk/PlatGTK.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/PlatGTK.cxx b/gtk/PlatGTK.cxx
index 827835a75..cb2e020e4 100644
--- a/gtk/PlatGTK.cxx
+++ b/gtk/PlatGTK.cxx
@@ -830,7 +830,9 @@ void ListBox::Append(char *s) {
}
int ListBox::Length() {
- return GTK_CLIST(list)->rows;
+ if (id)
+ return GTK_CLIST(list)->rows;
+ return 0;
}
void ListBox::Select(int n) {