summaryrefslogtreecommitdiffstats
path: root/src/live_effects/parameter/unit.cpp
diff options
context:
space:
mode:
authorMatthew Petroff <matthew@mpetroff.net>2013-08-04 22:01:18 +0000
committerMatthew Petroff <matthew@mpetroff.net>2013-08-04 22:01:18 +0000
commit6ae6c0bea96eef09907091279e0678aa5f83102d (patch)
tree825708d13704e27c33cb90a5269b25ae390cf4d2 /src/live_effects/parameter/unit.cpp
parentFix handling of SVG lengths with spaces [Bug #1208002]. (diff)
downloadinkscape-6ae6c0bea96eef09907091279e0678aa5f83102d.tar.gz
inkscape-6ae6c0bea96eef09907091279e0678aa5f83102d.zip
Switched to global UnitTable.
(bzr r12380.1.62)
Diffstat (limited to 'src/live_effects/parameter/unit.cpp')
-rw-r--r--src/live_effects/parameter/unit.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/live_effects/parameter/unit.cpp b/src/live_effects/parameter/unit.cpp
index 264b4b9ee..561766920 100644
--- a/src/live_effects/parameter/unit.cpp
+++ b/src/live_effects/parameter/unit.cpp
@@ -12,6 +12,8 @@
#include "verbs.h"
#include "util/units.h"
+using Inkscape::Util::unit_table;
+
namespace Inkscape {
namespace LivePathEffect {
@@ -22,7 +24,6 @@ UnitParam::UnitParam( const Glib::ustring& label, const Glib::ustring& tip,
Effect* effect, Glib::ustring default_unit)
: Parameter(label, tip, key, wr, effect)
{
- Inkscape::Util::UnitTable unit_table;
defunit = new Inkscape::Util::Unit(unit_table.getUnit(default_unit));
unit = defunit;
}
@@ -34,7 +35,6 @@ UnitParam::~UnitParam()
bool
UnitParam::param_readSVGValue(const gchar * strvalue)
{
- Inkscape::Util::UnitTable unit_table;
if (strvalue) {
param_set_value(unit_table.getUnit(strvalue));
return true;