PreviousNextTracker indexSee it online !

(34/231) 1697462 - jedit printing page range bug

Namely the bug is that you can not print selected page(s) for a
multiple-page document (page number > 2).

Steps to reproduce:
1) open a text file which would be printed out as 3 or more pages in
jedit v4.2 or v4.3;
2) click menu File -> Print..., in Print Range textbox and for Pages x
to y option, fill in any page number other than 1 as x;
3) click Print button;
4) you always get the second page onwards printed instead of desirable
print range;

Expected behavior:
The selected range of content should be printed.

Additional note:
1) If you insert the page number, the page number itself will be correct
on the printed papers. Just the actual content always starts from the
second page.
2) Again I'd like to emphasize that this bug has been there for a long
time, at least for all v4.2 previews and the final version, and all v4.3
previews to date.

Many thanks for your attention.

Submitted janix2000 - 2007-04-10 - 10:11:13z Assigned nobody
Priority 5 Category editor core
Status Open Group None
Resolution None Visibility No

Comments

2007-11-25 - 18:16:01z
beardo
Logged In: YES
user_id=1920542
Originator: NO

Do you (or anyone) have an idea where this bug is? I'm looking at the PrintableBuffer.java file but it's not too well commented that I can find it - I'm pretty sure that is where this bug lies
2007-11-26 - 14:28:15z
beardo
Logged In: YES
user_id=1920542
Originator: NO

I have since determined that this problem (i think) lies with the CurrentPhysicalLine Variable not receiving the correct line for the start of the page. After several hours of delving through the very complicated log file it seems to me that jEdit's printing method is very very unstructured and searches through the pages until it reaches the correct page for printing - an easier way would be to completely rewrite printBuffer so that it calculates the line numbers needed to print on the page. I shall continue to look into this bug and hopefully soon will have a solution

Attachments