summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2013-07-10 10:26:02 +0200
committerDavid Tardon <dtardon@redhat.com>2013-07-10 10:26:02 +0200
commitd8e22ac854217d647753c2f5c4943e167f45b6be (patch)
tree481037df75e857b02ffa4ce475d7487bcb21e361
parent31b9a3540b83bf0cbceb70ae3acadfc1a800e54e (diff)
fix condition
-rw-r--r--src/lib/VSDContentCollector.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/VSDContentCollector.cpp b/src/lib/VSDContentCollector.cpp
index d6f55f1..b5bb7d4 100644
--- a/src/lib/VSDContentCollector.cpp
+++ b/src/lib/VSDContentCollector.cpp
@@ -1527,7 +1527,7 @@ bool libvisio::VSDContentCollector::_isUniform(const std::vector<double> weights
double previousValue = weights[0];
for (std::vector<double>::size_type i = 0; i < weights.size(); ++i)
{
- if (fabs(weights[i] - previousValue < LIBVISIO_EPSILON))
+ if (fabs(weights[i] - previousValue) < LIBVISIO_EPSILON)
previousValue = weights[i];
else
return false;