summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/BlockID.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/BlockID.cpp b/src/BlockID.cpp
index 775d60a68..c598df0aa 100644
--- a/src/BlockID.cpp
+++ b/src/BlockID.cpp
@@ -295,7 +295,7 @@ eDimension StringToDimension(const AString & a_DimensionString)
{
// First try decoding as a number
int res;
- if (!StringToInteger(a_DimensionString, res))
+ if (StringToInteger(a_DimensionString, res))
{
// It was a valid number
return static_cast<eDimension>(res);