~ubuntu-branches/ubuntu/karmic/grace/karmic

« back to all changes in this revision

Viewing changes to src/psdrv.c

  • Committer: Bazaar Package Importer
  • Author(s): Ionut Georgescu
  • Date: 2006-11-12 17:58:47 UTC
  • mfrom: (2.1.6 feisty)
  • Revision ID: james.westby@ubuntu.com-20061112175847-pwerjj6k1smuwp6f
Tags: 1:5.1.20-5
Fix a bug in grace-thumbnailer which makes it write the thumbnail to
stdout instead of the destination supplied by nautilus.

Show diffs side-by-side

added added

removed removed

Lines of Context:
399
399
            fprintf(prstream, "%%%%EndFeature\n");
400
400
        }
401
401
    }
402
 
    
 
402
    fprintf(prstream, "%%%%EndSetup\n");
 
403
 
 
404
    if (curformat == PS_FORMAT) {
 
405
        fprintf(prstream, "%%%%Page: 1 1\n");
 
406
    }
 
407
 
403
408
    /* compensate for printer page offsets */
404
409
    if (curformat == PS_FORMAT) {
405
410
        fprintf(prstream, "PAGE_OFFSET_X PAGE_OFFSET_Y translate\n");
410
415
        fprintf(prstream, "90 rotate\n");
411
416
        fprintf(prstream, "0.0 -1.0 translate\n");
412
417
    }
413
 
    fprintf(prstream, "%%%%EndSetup\n");
414
 
 
415
 
    if (curformat == PS_FORMAT) {
416
 
        fprintf(prstream, "%%%%Page: 1 1\n");
417
 
    }
418
 
 
419
418
    return RETURN_SUCCESS;
420
419
}
421
420