diff --git a/Bitmap.c b/Bitmap.c index e16887695390b52a1eb9fd728f446cccc28629ee..d074058e1140de44626d3d77a149f93ca11cf7e1 100644 --- a/Bitmap.c +++ b/Bitmap.c @@ -963,12 +963,14 @@ BWParseSize(String size, Dimension *width, Dimension *height) status = XParseGeometry(size, &x, &y, &w, &h); - if (status & (WidthValue | HeightValue)) { + if (status & WidthValue) { *width = (Dimension) w; - *height = (Dimension) h; - return True; + if (status & HeightValue) { + *height = (Dimension) h; + return True; + } } - else return False; + return False; }