diff options
| author | Matthew Petroff <matthew@mpetroff.net> | 2013-09-16 03:59:14 +0000 |
|---|---|---|
| committer | Matthew Petroff <matthew@mpetroff.net> | 2013-09-16 03:59:14 +0000 |
| commit | f55a53ef2d861b634ad83622edc5e26430baeae0 (patch) | |
| tree | 5787aac97d92a5f7c80671af9ef29121bf203700 /src/util/units.cpp | |
| parent | Enable unit evaluation in toolbars. (diff) | |
| download | inkscape-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.cpp | 1 |
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() |
