Menu

#6 Value Edit Precision Bug (Patch)

closed
nobody
None
5
2016-06-21
2009-09-05
No

Hi, testing the patch I wrote to support configurable precision in securities prices (http://sourceforge.net/tracker/?func=detail&aid=2842869&group_id=173799&atid=866834) has revealed a bug in the EqonomizeValueEdit class. QDoubleSpinBox rounds values as they are set, according to whatever precision has previously been set. So in the init function (and a couple of other places), the precision must be set before the value is set, otherwise the value may get rounded when it shouldn't.

Fix attached. :-)

Discussion

  • Brendon Higgins

    Brendon Higgins - 2009-09-05

    Value Edit Precision Setting/Value Rounding Bugfix

     
  • Hanna K.

    Hanna K. - 2016-06-21
    • Status: open --> closed
     

Log in to post a comment.