]> mj.ucw.cz Git - libucw.git/commitdiff
bugfix in image scaling (select the correct strategy)
authorPavel Charvat <pavel.charvat@netcentrum.cz>
Fri, 18 May 2007 11:45:03 +0000 (13:45 +0200)
committerPavel Charvat <pavel.charvat@netcentrum.cz>
Fri, 18 May 2007 11:45:03 +0000 (13:45 +0200)
images/scale.c

index ca80616f95802d949dcf59f3977fffab79fe9690..6be72ca241202245cd956ec18eb312e993f7f964 100644 (file)
@@ -226,7 +226,7 @@ image_scale(struct image_context *ctx, struct image *dest, struct image *src)
     }
   else
     {
-      if (dest->cols <= src->cols && src->cols <= dest->cols)
+      if (dest->cols <= src->cols && dest->rows <= src->rows)
         {
          /* Downscale in both dimensions */
           image_scale_downsample_xy(dest, src);