From 47a92e7fc09c2e0411e559cd640131ccacc316bd Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Wed, 12 May 2010 16:50:36 -0400 Subject: [PATCH] Don't treat min-width and min-height as a fixed size I have no idea why there existed code that if we saw e.g. min-width without a width, we assigned min-width to ->width, thus effectively treating it as a maximum. Just delete that bit. https://bugzilla.gnome.org/show_bug.cgi?id=618482 --- src/st/st-theme-node.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/st/st-theme-node.c b/src/st/st-theme-node.c index dfe629e70..24846ae0d 100644 --- a/src/st/st-theme-node.c +++ b/src/st/st-theme-node.c @@ -1141,8 +1141,6 @@ _st_theme_node_ensure_geometry (StThemeNode *node) else if (node->width > node->max_width) node->width = node->max_width; } - else - node->width = node->min_width; if (node->height != -1) { @@ -1155,8 +1153,6 @@ _st_theme_node_ensure_geometry (StThemeNode *node) else if (node->height > node->max_height) node->height = node->max_height; } - else - node->height = node->min_height; } int