t2p.c

changeset 46
20fda1ec5f17
parent 44
0f78374addae
child 47
bfc6aaa089b0
     1.1 diff -r 23ef95d6ff07 -r 20fda1ec5f17 t2p.c
     1.2 --- a/t2p.c	Sun Aug 25 13:21:28 2002 +0000
     1.3 +++ b/t2p.c	Sun Aug 25 13:22:42 2002 +0000
     1.4 @@ -4,7 +4,7 @@
     1.5   *      will be compressed using ITU-T T.6 (G4) fax encoding.
     1.6   *
     1.7   * Main program
     1.8 - * $Id: t2p.c,v 1.16 2002/01/30 00:55:34 eric Exp $
     1.9 + * $Id: t2p.c,v 1.17 2002/08/25 05:22:42 eric Exp $
    1.10   * Copyright 2001 Eric Smith <eric@brouhaha.com>
    1.11   *
    1.12   * This program is free software; you can redistribute it and/or modify
    1.13 @@ -377,10 +377,11 @@
    1.14  	goto fail;
    1.15        }
    1.16  
    1.17 -  bitmap = resize_bitmap (bitmap,
    1.18 -			      x_resolution,
    1.19 -			      y_resolution,
    1.20 -			      input_attributes);
    1.21 +  if (input_attributes.has_page_size)
    1.22 +    bitmap = resize_bitmap (bitmap,
    1.23 +			    x_resolution,
    1.24 +			    y_resolution,
    1.25 +			    input_attributes);
    1.26  
    1.27    rotate_bitmap (bitmap,
    1.28  		 input_attributes);