#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?

     
  • Vincent Snijders

    • assigned_to: nobody --> alexs75
     
  • Lagunov Aleksey

    Lagunov Aleksey - 2011-01-07
    • status: open --> open-fixed
     
  • Vincent Snijders

    Fixed in svn revision 1428.

     
  • Vincent Snijders

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

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks