diff options
| author | nyamatongwe <unknown> | 2001-12-13 11:08:19 +0000 |
|---|---|---|
| committer | nyamatongwe <unknown> | 2001-12-13 11:08:19 +0000 |
| commit | fc233a92e3cc15ba62c3ebc8ec907e070644af89 (patch) | |
| tree | 899d9a409ec686531d16b7d85e4310e8494881e4 | |
| parent | 457ca7e9ae6f9cd3ec7baffad2d2c625312f1c76 (diff) | |
| download | scintilla-mirror-fc233a92e3cc15ba62c3ebc8ec907e070644af89.tar.gz | |
Patch from Alan Knowles to avoid warning caused by not choosing an item
from an autocompletion list.
| -rw-r--r-- | gtk/PlatGTK.cxx | 4 |
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) { |
