[Kst] [Bug 145289] Equations do not always update

Andrew Walker arwalker at sumusltd.com
Wed Jul 4 01:21:03 CEST 2007


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=145289         




------- Additional Comments From arwalker sumusltd com  2007-07-04 01:21 -------
The problem is directly caused by KstEquation::FillY(...) line 500:

  for (ctx.i = i0; ctx.i < _ns; ++ctx.i) {

as i0 and _ns are the same value for KstSVector but different for KstRVector. Thus, the equation is recalculated in the latter case, but not the former.

An effort is made to avoid recalculating the equation as much as possible, but for when using a KstRVector as the x-axis this optimisation is avoided - and so the equation is updated.

In the case of a KstSVector though the optimisation is utilised - and nothing is recalculated. This optimisation is incorrect as it ignores the possibility that a scalar in the equation may have been updated.


More information about the Kst mailing list