summaryrefslogtreecommitdiffstats
path: root/src/util/units.cpp
diff options
context:
space:
mode:
authorMatthew Petroff <matthew@mpetroff.net>2013-09-16 03:59:14 +0000
committerMatthew Petroff <matthew@mpetroff.net>2013-09-16 03:59:14 +0000
commitf55a53ef2d861b634ad83622edc5e26430baeae0 (patch)
tree5787aac97d92a5f7c80671af9ef29121bf203700 /src/util/units.cpp
parentEnable unit evaluation in toolbars. (diff)
downloadinkscape-f55a53ef2d861b634ad83622edc5e26430baeae0.tar.gz
inkscape-f55a53ef2d861b634ad83622edc5e26430baeae0.zip
C++ify expression evaluator.
(bzr r12475.1.23)
Diffstat (limited to 'src/util/units.cpp')
-rw-r--r--src/util/units.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util/units.cpp b/src/util/units.cpp
index 414885040..e5c6f74fb 100644
--- a/src/util/units.cpp
+++ b/src/util/units.cpp
@@ -114,6 +114,7 @@ Unit::Unit(UnitType type,
abbr(abbr),
description(description)
{
+ g_return_if_fail(factor <= 0);
}
void Unit::clear()