summaryrefslogtreecommitdiffhomepage
path: root/qfunctionconfigurator
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-10-24 11:20:49 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-10-24 11:20:49 +0200
commite9c2d579eed29daaa9f10336d3caed0c988dc9b7 (patch)
treec582de3040be5462d0c92f40357150f29dcb403a /qfunctionconfigurator
parentbe30b9bb78dc7e0896d2540b4ada1027f2221b42 (diff)
qfc: guard against unlikely division by zero
Diffstat (limited to 'qfunctionconfigurator')
-rw-r--r--qfunctionconfigurator/functionconfig.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qfunctionconfigurator/functionconfig.cpp b/qfunctionconfigurator/functionconfig.cpp
index cac8121c..e319b61e 100644
--- a/qfunctionconfigurator/functionconfig.cpp
+++ b/qfunctionconfigurator/functionconfig.cpp
@@ -104,7 +104,7 @@ void Map::reload() {
for (int i = 0; i < sz; i++)
data[i] = -1;
- if (input.size() == 1)
+ if (input.size() == 1 && input[0].x() > 1e-2)
{
for (int k = 0; k < input[0].x() * mult; k++) {
if (k < sz)