Opened 17 years ago
Closed 17 years ago
#1288 closed bug (fixed)
StyledEdit does not print when there is only one line of text
Reported by: | bnickname | Owned by: | jackburton |
---|---|---|---|
Priority: | normal | Milestone: | R1/alpha1 |
Component: | Applications/StyledEdit | Version: | R1/pre-alpha1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
With only one line of text, StyledEdit reports there are no pages to print when choosing print
Change History (4)
comment:1 by , 17 years ago
Owner: | changed from | to
---|
comment:2 by , 17 years ago
I had a brief look at StyledEditWindow::Print(). When there's only one line, the values of firstLine and lastLine before the while loop at line 1167 are both 0. So the while loop is never executed. But 0 means the first line, so maybe we should change line 1167 to be
while (printLine <= lastLine).
I haven't done that change yet, because I see there are other problems with printing (The content of the view isn't shifted as it should, on print, so the text usually falls outside the margins of the print area). This could be a problem in BPicture, btw, I'll have a look at that before.
follow-up: 4 comment:3 by , 17 years ago
Milestone: | R1 → R1/alpha |
---|
comment:4 by , 17 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Replying to jackburton:
Fixed in hrev22511. Printing in StyledEdit is still very much broken though.
Couldn't reproduce. I'm reassigning to Stefano, in case I missed something :)