Summary: | can't read data that uses capital E in scientific notation and doesn't plot last point in a data file | ||
---|---|---|---|
Product: | [Applications] kst | Reporter: | Karl Meredith <kvm> |
Component: | general | Assignee: | George Staikos <staikos> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 1.x | ||
Target Milestone: | --- | ||
Platform: | RedHat Enterprise Linux | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Karl Meredith
2003-12-04 20:26:18 UTC
Argh, it's a 1 character regression that resulted from the datasources change. Will commit a fix shortly. Meanwhile there is a second bug reported here so I can't close the report yet. Subject: kdeextragear-2/kst/kst/datasources/ascii CVS commit by staikos: Properly detect ascii files that use E instead of e for scientific notation. CCMAIL: 69645@bugs.kde.org M +1 -1 ascii.cpp 1.8 --- kdeextragear-2/kst/kst/datasources/ascii/ascii.cpp #1.7:1.8 @@ -259,5 +259,5 @@ bool understands_ascii(const QString& fi if (rc >= 2) { // FIXME: comments - if (QRegExp("^[\\s]*([0-9\\-\\.e]+[\\s]+)+[\\n]*$").exactMatch(s)) { + if (QRegExp("^[\\s]*([0-9\\-\\.eE]+[\\s]+)+[\\n]*$").exactMatch(s)) { return true; } Subject: kdeextragear-2/kst/kst CVS commit by staikos: draw the last point in graphs. I'm not sure if this is entirely correct, but it definitely fixes this bug. The problem is that there might be unexpected consequences, so this needs lots of testing before release. CCMAIL: 69645-done@bugs.kde.org M +1 -1 kstplot.cpp 1.27 --- kdeextragear-2/kst/kst/kstplot.cpp #1.26:1.27 @@ -1195,5 +1195,5 @@ void KstPlot::paint(QPainter &p, double last_y1 = Y1; - for (i_pt = i0+1; i_pt < iN; i_pt++) { + for (i_pt = i0 + 1; i_pt <= iN; i_pt++) { X2 = last_x1; |