[libegg/spread-table-dnd] Fixed guess for good placeholder size in EggSpreadTableDnd



commit fc209b864924953d484bce63a0f872730fdaf50d
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date:   Sun Apr 10 17:07:52 2011 +0900

    Fixed guess for good placeholder size in EggSpreadTableDnd
    
    Was using MIN (line_width, min_width) instead of MAX().

 libegg/spreadtable/eggspreadtablednd.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libegg/spreadtable/eggspreadtablednd.c b/libegg/spreadtable/eggspreadtablednd.c
index 7060b8f..e829d1d 100644
--- a/libegg/spreadtable/eggspreadtablednd.c
+++ b/libegg/spreadtable/eggspreadtablednd.c
@@ -446,7 +446,7 @@ get_placeholder_size (EggSpreadTableDnd *spread_table,
 
       gtk_widget_get_preferred_width (spread_table->priv->drag_data.child, &min_width, NULL);  
 
-      *width = MIN (line_width, min_width);
+      *width = MAX (line_width, min_width);
       
       gtk_widget_get_preferred_height_for_width (spread_table->priv->drag_data.child,
 						 *width, height, NULL);
@@ -457,7 +457,7 @@ get_placeholder_size (EggSpreadTableDnd *spread_table,
 
       gtk_widget_get_preferred_width (spread_table->priv->drag_data.child, &min_height, NULL);  
 
-      *height = MIN (line_width, min_height);
+      *height = MAX (line_width, min_height);
       
       gtk_widget_get_preferred_width_for_height (spread_table->priv->drag_data.child,
 						 *height, width, NULL);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]