Bug 162429 - Printing of e.g. odd pages in range "58" fails but doesn't give a error message
Summary: Printing of e.g. odd pages in range "58" fails but doesn't give a error message
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kdeprint
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: KDEPrint Devel Mailinglist
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-21 20:50 UTC by Sven Wehner
Modified: 2011-05-27 18:39 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Wehner 2008-05-21 20:50:12 UTC
Version:            (using KDE 3.5.9)
Installed from:    Gentoo Packages
Compiler:          gcc-4.1.2 
OS:                Linux

This is a rather not important bug, which happens only for "stupid" users, but it annoys anyway and should be fixable quite easy.

Today I wanted to print the pages 57-59 with kpdf and because my printer is a half-duplex one, I first printed the odd pages from the range "57-59" (which worked very well). And then I changed the range (instead of the odd/even pages combo box) to "58". So I tried to print all odd pages within a range that doesn't contain any odd pages. But the problem is, that I didn't get any error messages at all. So I had to check the cups logs.

Cups reports (/var/log/cups/error_log):
  ...
  E [21/May/2008:20:28:19 +0200] [Job 389] No pages found!
  E [21/May/2008:20:28:19 +0200] PID 24874 (/usr/libexec/cups/filter/rastertohp) stopped with status 1!
  I [21/May/2008:20:28:19 +0200] Hint: Try setting the LogLevel to "debug" to find out more.
  ...

The first one is actually a quite good error message... but I oversaw it. And then I checked my system...


I suggest writing a simple error checking like:
  if(count(pages) <= 0)
    print_error("The number of pages you selected is zero!\nPlease check your page range and page set.");
Comment 1 John Layt 2011-05-27 18:39:47 UTC
KDEPrint is obsolete, unmaintained and will never be revived.  Closing all open bugs.