summaryrefslogtreecommitdiffstats
path: root/generic/ttk
diff options
context:
space:
mode:
authordas <das>2008-06-12 06:30:22 (GMT)
committerdas <das>2008-06-12 06:30:22 (GMT)
commitb67427f70538c6e0ecff16796635b93df88bde64 (patch)
tree9c8f46e7ce0447bd7467640312375bf8e979c9d2 /generic/ttk
parent98f358e1fe6ead680a224cd89f9a51bfb9474c16 (diff)
downloadtk-b67427f70538c6e0ecff16796635b93df88bde64.zip
tk-b67427f70538c6e0ecff16796635b93df88bde64.tar.gz
tk-b67427f70538c6e0ecff16796635b93df88bde64.tar.bz2
* generic/ttk/ttkTreeview.c: fix warning.
Diffstat (limited to 'generic/ttk')
-rw-r--r--generic/ttk/ttkTreeview.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/generic/ttk/ttkTreeview.c b/generic/ttk/ttkTreeview.c
index 00280cf..e9ac22a 100644
--- a/generic/ttk/ttkTreeview.c
+++ b/generic/ttk/ttkTreeview.c
@@ -1,4 +1,4 @@
-/* $Id: ttkTreeview.c,v 1.27 2008/06/01 08:28:18 jenglish Exp $
+/* $Id: ttkTreeview.c,v 1.28 2008/06/12 06:30:22 das Exp $
* Copyright (c) 2004, Joe English
*
* ttk::treeview widget implementation.
@@ -1510,8 +1510,9 @@ static const char *regionStrings[] = {
static TreeRegion IdentifyRegion(Treeview *tv, int x, int y)
{
- int x1, colno = IdentifyDisplayColumn(tv, x, &x1);
-
+ int x1 = 0, colno;
+
+ colno = IdentifyDisplayColumn(tv, x, &x1);
if (Ttk_BoxContains(tv->tree.headingArea, x, y)) {
if (colno < 0) {
return REGION_NOTHING;