From dd3c63c5d78699b80416f8080f4ade9612549654 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 13 Dec 2001 11:08:19 +0000 Subject: Patch from Alan Knowles to avoid warning caused by not choosing an item from an autocompletion list. --- gtk/PlatGTK.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gtk') 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) { -- cgit v1.2.3