blob: 6e1bce2d4e9bc18dd69d4da59155386ca96d5c47 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
diff --git a/analitza/commands/listcommands.cpp b/analitza/commands/listcommands.cpp
index b77f49a9..2885169a 100644
--- a/analitza/commands/listcommands.cpp
+++ b/analitza/commands/listcommands.cpp
@@ -69,8 +69,9 @@ Expression RangeCommand::operator()(const QList<Analitza::Expression >& args)
Analitza::List *seq = new Analitza::List;
- for (double x = a; x <= b; x += h)
+ for (double x = a; x < b || qFuzzyCompare(x, b); x += h) {
seq->appendBranch(new Analitza::Cn(x));
+ }
ret.setTree(seq);
|