~ubuntu-branches/ubuntu/raring/hplip/raring

« back to all changes in this revision

Viewing changes to prnt/hpijs/services.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Mark Purcell
  • Date: 2009-12-14 20:08:44 UTC
  • mfrom: (2.1.118 lucid)
  • Revision ID: james.westby@ubuntu.com-20091214200844-z8qhqwgppbu3t7ze
Tags: 3.9.10-4
KBSD patch from KiBi (Closes: #560796)

Show diffs side-by-side

added added

removed removed

Lines of Context:
374
374
    if (outfp)
375
375
    {
376
376
        fwrite (pBuffer, 1, *Count, outfp);
377
 
        *Count = 0;
378
377
        if (!(m_iLogLevel & SEND_TO_PRINTER))
 
378
        {
 
379
            *Count = 0;
379
380
            return NO_ERROR;
 
381
        }
380
382
    }
381
383
 
382
384
   /* Write must be not-buffered, don't use streams */
572
574
    if ((r = pPC->SetPaperSize ((PAPER_SIZE)size, FullBleed)) != NO_ERROR)
573
575
    {
574
576
        if (r > 0)
575
 
            BUG("unable to set paper size=%d, err=%d\n", size, r);
 
577
        {
 
578
            BUG("unable to set paper size=%d, err=%d, width=%0.5g, height=%0.5g\n", size, r, width, height);
 
579
        }
576
580
        else 
577
 
            BUG("warning setting paper size=%d, err=%d\n", size, r);
578
 
 
 
581
        {
 
582
            BUG("warning setting paper size=%d, err=%d, width=%0.5g, height=%0.5g\n", size, r, width, height);
 
583
        }
579
584
/*
580
585
 *      Call failed, reset our PaperWidth and PaperHeight values.
581
586
 *      This ensures that we return correct values when gs queries for printable area.