Bug 116487 - vector generation does not update all properties
Summary: vector generation does not update all properties
Status: RESOLVED FIXED
Alias: None
Product: kst
Classification: Applications
Component: general (show other bugs)
Version: 1.x
Platform: unspecified Solaris
: NOR normal
Target Milestone: ---
Assignee: kst
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-16 11:21 UTC by Nicolas Brisset
Modified: 2005-11-17 00:14 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Brisset 2005-11-16 11:21:34 UTC
Version:           1.2.0_devel (using KDE 3.4.0, compiled sources)
Compiler:          gcc version 3.4.3
OS:                SunOS (sun4u) release 5.8

To reproduce:
- start kst
- datamanager -> new vector -> generate
- settings: from -10.0 to 10.0, 1000 points
- OK: in the datamanager, properties say from 0 to 0 while viewing the vector values show that it has been generated correctly
- edit the vector from the datamanager: the from/to values are set to 0

The values entered should obviously be reflected in the datamanager UI ("properties" column) and taken into account when editing the vector.
Comment 1 Andrew Walker 2005-11-16 22:24:32 UTC
The vector will currently only be updated if it is part of a curve.
Comment 2 Andrew Walker 2005-11-16 22:35:44 UTC
We could force the update by doing the following in KstSVector:

  internalUpdate(KstObject::UPDATE);

in KstSVector::changeRange(double x0, double x1, int n). Any
good reason not to do this?
Comment 3 George Staikos 2005-11-16 23:15:12 UTC
On Wednesday 16 November 2005 16:35, Andrew Walker wrote:
> ------- We could force the update by doing the following in KstSVector:
>
>   internalUpdate(KstObject::UPDATE);
>
> in KstSVector::changeRange(double x0, double x1, int n). Any
> good reason not to do this?


  Looks right to me.  That's exactly what internalUpdate was created for (and 
why it's protected).
Comment 4 Andrew Walker 2005-11-17 00:14:26 UTC
Call internalUpdate to update the static vector properties.