Value Edit Precision Bug (Patch)
Status: Beta
Brought to you by:
hanna_k
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. :-)
Value Edit Precision Setting/Value Rounding Bugfix