diff options
author | Thomas Thurman <tthurman@gnome.org> | 2009-10-28 00:05:01 -0400 |
---|---|---|
committer | Thomas Thurman <tthurman@gnome.org> | 2009-10-28 00:05:01 -0400 |
commit | 7f2155caaccee89d5efdeaea1c35c527241e9644 (patch) | |
tree | eb30e7d0cd254cf777abe5b16b112e4e9b281c58 | |
parent | 0b25b5e4da34872316ef0e06da455264d4b801ec (diff) | |
download | metacity-7f2155caaccee89d5efdeaea1c35c527241e9644.tar.gz |
make sure min isn't greater than max
-rw-r--r-- | src/ui/theme.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ui/theme.c b/src/ui/theme.c index 4ee04c3a..73510493 100644 --- a/src/ui/theme.c +++ b/src/ui/theme.c @@ -841,10 +841,14 @@ cowbell_get_button_width (MetaTheme *theme, double aspect_ratio; double result; - /* FIXME: maybe check these are ordered correctly */ ccss_style_get_double (style, "min-width", &min_width); ccss_style_get_double (style, "max-width", &max_width); + if (min_width > max_width) + { + min_width = max_width; + } + if (min_width!=0.0 && min_width==max_width) { /* gosh, that was easy. */ |