diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-06-29 18:59:45 +0200 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-06-29 18:59:45 +0200 |
commit | 3d56a7fc6ed2fd52b7da2fc4209233cbbc04c761 (patch) | |
tree | 32a87b1b2d938e387217dd0a5d760d31410a1b4c /src/html.cc | |
parent | 2bd7d5e9376d920eed6859332163334c15de4b9d (diff) |
use IMAGE_MAX_AREA instead of IMAGE_MAX_W and IMAGE_MAX_H
Diffstat (limited to 'src/html.cc')
-rw-r--r-- | src/html.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/html.cc b/src/html.cc index 493290ff..f05beb51 100644 --- a/src/html.cc +++ b/src/html.cc @@ -1984,7 +1984,7 @@ DilloImage *a_Html_image_new(DilloHtml *html, const char *tag, h = (int) (CSS_LENGTH_TYPE(l_h) == CSS_LENGTH_TYPE_PX ? CSS_LENGTH_VALUE(l_h) : 0); } - if (w < 0 || h < 0 || abs(w*h) > IMAGE_MAX_W * IMAGE_MAX_H) { + if (w < 0 || h < 0 || abs(w*h) > IMAGE_MAX_AREA) { dFree(width_ptr); dFree(height_ptr); width_ptr = height_ptr = NULL; |