Summary: | Equation X output vector length error | ||
---|---|---|---|
Product: | [Applications] kst | Reporter: | Netterfield <netterfield> |
Component: | general | Assignee: | kst |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | VHI | ||
Version: | 1.x | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Netterfield
2006-06-21 02:10:37 UTC
This bug makes equations unusable for most dirfiles, where it is common for INDEX to have a different number of samples per frame than most fields. This needs to be fixed immediately, or the 'fix' to 128483 needs to be reverted until it is fixed. Additionally, a test case for this needs to be added. SVN commit 553439 by netterfield: BUG: 129530 re-set the length of the output vector to the right thing.... M +4 -0 kstequation.cpp --- trunk/extragear/graphics/kst/src/libkstmath/kstequation.cpp #553438:553439 @@ -450,6 +450,10 @@ rawyv[ctx.i] = _pe->value(&ctx); } + if (!(*_xOutVector)->resize(iv->length())) { + // FIXME: handle error? + return false; + } return true; } On Tuesday 20 June 2006 20:10, netterfield@astro.utoronto.ca wrote: > Note that the current implementation attempts to copy the input vector to > the output vector. I think that it would be better to instead create a new > class aliasVector which simply returns the properties of the source vector, > except for its name, without making a copy. Not sure what the cleanest C++ > for this would be though. I agree. It should be a proxy class. |