Bug 297526

Summary: Polar plot does not update properly
Product: [Applications] kst Reporter: Ben Lewis <benlewis003>
Component: equationsAssignee: kst
Status: RESOLVED FIXED    
Severity: normal CC: benlewis003, netterfield
Priority: NOR    
Version: 2.0.4   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Example kst file to reproduce bug
Example kst file to reproduce bug

Description Ben Lewis 2012-04-05 11:26:47 UTC
User-Agent:       Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20100101 Firefox/11.0
Build Identifier: 

Polar plot does not update properly if there is a negative sign in front of the trigonometric term.

Reproducible: Always

Steps to Reproduce:
1.Create an index vector.
2.Create and equation for the "x" vaules of a circle in the format x=k*-sin(x+b) (where x is the index vector created above).
3.Create and equation for the "y" vaules of a circle in the format y=k*cos(x+b).
4. Create a curve with the "x" equation on the x axis and the "y" equation on the y axis.
5. Edit the scaler value "b" and only the "x" equation will update.
6. Editing the scaler value "k" will cause both equations to update as expected.
Actual Results:  
The equation with the negative sign in front of the trigonometric does not update.

Expected Results:  
Equation should update automatically.

I will upload an example file to the mailing list to reproduce this bug.
Comment 1 Ben Lewis 2012-04-05 11:29:59 UTC
Created attachment 70172 [details]
Example kst file to reproduce bug
Comment 2 Ben Lewis 2012-04-05 13:51:04 UTC
Created attachment 70177 [details]
Example kst file to reproduce bug

The previous example file had a mistake in the description of how to reproduce this bug
Comment 3 Netterfield 2012-04-06 23:25:32 UTC
The but is triggered by a unary operator acting on eg, sin().

so 

    -sin(x + [b (x44)]) 

triggers the bug but 

    -1*sin(x + [b (x44)]) does not.
Comment 4 Netterfield 2012-04-13 21:21:22 UTC
SVN commit 1289399 by netterfield:

Unary minus no longer prevents updating of equations.


 M  +2 -0      dataobject.cpp  
 M  +6 -0      enodes.cpp  
 M  +1 -0      enodes.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1289399