Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#17 divide by zero in TRxDBGrid.CalcTitle

closed-fixed
None
5
2011-01-08
2010-11-21
mek wang
No

rxdbgrid.pas (svn 1374)

line 1239:
if W1 > W then
MLRec1.Hegth:= W1 div W + 1 <--------- (multiline title caption)drag to make col width to 0 will raise divide by zero here
else
MLRec1.Hegth:=1;

Discussion

  • mek wang
    mek wang
    2010-11-21

    change:
    if W1 > W then
    to:
    if (W1 > W)and(W>0) then
    is ok?

     
    • assigned_to: nobody --> alexs75
     
    • status: open --> open-fixed
     
  • Fixed in svn revision 1428.

     
    • status: open-fixed --> closed-fixed