Menu

#3 small problem in gifbuilder UpdateStatusBar()

closed-fixed
nobody
5
2009-11-05
2009-11-05
Bill BOQUET
No

progress = currentFrame / frameCount * 100;//makes an error when frameCount = 0
suggestion : if (framecount > 0) progress = currentFrame / frameCount * 100;
:)

Discussion

  • Simon Bridewell

    Simon Bridewell - 2009-11-05

    Well spotted. This only happens if you hit the encode button without adding any frames first, so rather than change the UpdateStatusBar method, I've put a test in the Encode method so it doesn't even start the process if there are no frames.

    Note you need to get the latest CommonForms (0.1.3596.19787) before you can build this as it contains a new CleverMessageBox control.

     
  • Simon Bridewell

    Simon Bridewell - 2009-11-05
    • status: open --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB