From 7d64e19f5ab21fe66dbda044940e28a5d45ae199 Mon Sep 17 00:00:00 2001 From: kojima Date: Thu, 17 May 2001 23:34:47 +0000 Subject: [PATCH] fixed bug on previous bug fix for tableview overflow bug.. (yeh, i also think cvs should send only 1 mail/day to the list..) --- WINGs/Extras/wtableview.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WINGs/Extras/wtableview.c b/WINGs/Extras/wtableview.c index bd467569..7001bc36 100644 --- a/WINGs/Extras/wtableview.c +++ b/WINGs/Extras/wtableview.c @@ -232,7 +232,7 @@ static void scrollToPoint(WMTableView *table, int x, int y) int i; float value, prop; - if (size.width < W_VIEW_WIDTH(table->tableView)) { + if (size.width > W_VIEW_WIDTH(table->tableView)) { prop = (float)size.width / (float)W_VIEW_WIDTH(table->tableView); value = x * (float)(size.width - W_VIEW_WIDTH(table->tableView)); } else { @@ -242,7 +242,7 @@ static void scrollToPoint(WMTableView *table, int x, int y) WMSetScrollerParameters(table->hscroll, value, prop); - if (size.height < W_VIEW_HEIGHT(table->tableView)) { + if (size.height > W_VIEW_HEIGHT(table->tableView)) { prop = (float)size.height / (float)W_VIEW_HEIGHT(table->tableView); value = y * (float)(size.height - W_VIEW_HEIGHT(table->tableView)); } else { -- 2.11.4.GIT