Gnats 4575: Attempting to print ruleset to PS file results in RW crash
... Gnats Record Link. [Edit 7-24-2008].

Two problems were addressed with this bug fix:


(1) The code to WRAP long text lines printed in RplQtPrinter:: printText() had a bug which caused a crash.

When handling a text line which did not fit in the available horizontal space, the part that fit was printed, and the remaining text was re-inserted into the QStringList being iterated (at the position immediately following the current iterator place). That insertion operation failed when the iterator was already at the end of the QStringList.

That algorithm was modified to avoid the need to insert into the QStringList being iterated through. [Coded by Phil; reviewed by Neil].


(2) When printing to a PostScript file, if the "Adobe PDF Settings" included a checked setting: "[X] Do not send fonts to Distiller", an error message from Acrobat Distiller is shown (top image), and a subsequent error would cause RiverWare to crash.

This condition is now detected. When it is, an error popup is shown (See the "RiverWare RPL Print Error" popup dialog image) and the print operation is aborted.


 

   

Images for (2)