Summary: | Matrix can not be updated automatically after changing its source Data range | ||
---|---|---|---|
Product: | [Applications] kst | Reporter: | Yiwen Mao <yiwenv> |
Component: | general | Assignee: | kst |
Status: | RESOLVED NOT A BUG | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 1.x | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | the source file used to generate the matrix mentioned in the bug description |
Description
Yiwen Mao
2008-02-20 22:42:45 UTC
Created attachment 23642 [details]
the source file used to generate the matrix mentioned in the bug description
A vector in a similar situation updates only because the ASCII data source calls KstDataSource::updateNumFramesScalar. As this value is marked as dirty as a result, the next update loop will update its provider (i.e. the vector). For the matrix case this call sends the already existing value to KstDataSource::updateNumFramesScalar, so the value is not marked as dirty and so the matrix is not updated on the next update loop. NOTE: calling setDirty on the scalar is insufficient as this does not achieve the same result as the code in KstScalar::setValue, where the new value is not equal to the old value. No primitive object will update when it is not in use. This applies to vectors and matrices. This is a "feature" of kst, in that it removes the need to update objects that are not actually in use - saving processing time. |