diff options
| author | nyamatongwe <devnull@localhost> | 2001-12-13 11:08:19 +0000 |
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2001-12-13 11:08:19 +0000 |
| commit | dd3c63c5d78699b80416f8080f4ade9612549654 (patch) | |
| tree | 899d9a409ec686531d16b7d85e4310e8494881e4 | |
| parent | b3bfd2fc2090e61b1d2f49cc66a1bed3487d8f2a (diff) | |
| download | scintilla-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.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) { |
