Bug 297526 - Polar plot does not update properly
Summary: Polar plot does not update properly
Status: RESOLVED FIXED
Alias: None
Product: kst
Classification: Applications
Component: equations (show other bugs)
Version: 2.0.4
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: kst
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-05 11:26 UTC by Ben Lewis
Modified: 2012-04-13 21:21 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Example kst file to reproduce bug (8.02 KB, application/octet-stream)
2012-04-05 11:29 UTC, Ben Lewis
Details
Example kst file to reproduce bug (8.03 KB, application/octet-stream)
2012-04-05 13:51 UTC, Ben Lewis
Details

Note You need to log in before you can comment on or make changes to this 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