Crash on Print Preview (RichViewActions)

General TRichView support forum. Please post your questions here
Post Reply
marcpleysier
Posts: 39
Joined: Sun Aug 13, 2006 12:46 pm
Contact:

Crash on Print Preview (RichViewActions)

Post by marcpleysier »

When previewing this file
http://www.solune.com/interne/RV_preview_crash.rvf
in RichViewActions editor, the following error occurs :
"Débordement d'entier"
The error message is in French (my Delphi and Windows language), even if RV editor isn't localised.
The message translated in English might be
"Integer overflow"
Sergey Tkachenko
Site Admin
Posts: 17534
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Confirmed. It may happen when previewing text formatted with raster (not TrueType) font.
Fix: Open RVStyle.pas, find two calls of RVU_GetTextExtentExPoint, change the 3rd parameter from Width*2 to $FFFFFFF.
Post Reply