summaryrefslogtreecommitdiffstats
path: root/src/preferences.cpp
diff options
context:
space:
mode:
authorsu_v <suv-sf@users.sourceforge.net>2013-08-29 21:06:10 +0000
committer~suv <suv-sf@users.sourceforge.net>2013-08-29 21:06:10 +0000
commit4d331e73a76dce7d703716093923ca01b3cc5936 (patch)
treeb444657ba269b25f60684e66858a138b74fe240d /src/preferences.cpp
parentFix compiler warnings (diff)
parentUpdating outdated test. Fixes bug #1202271. (diff)
downloadinkscape-4d331e73a76dce7d703716093923ca01b3cc5936.tar.gz
inkscape-4d331e73a76dce7d703716093923ca01b3cc5936.zip
merge from trunk (r12487)
(bzr r11668.1.75)
Diffstat (limited to 'src/preferences.cpp')
-rw-r--r--src/preferences.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/preferences.cpp b/src/preferences.cpp
index 1d7009a99..0dc6f1ec4 100644
--- a/src/preferences.cpp
+++ b/src/preferences.cpp
@@ -28,6 +28,8 @@
#define PREFERENCES_FILE_NAME "preferences.xml"
+using Inkscape::Util::unit_table;
+
namespace Inkscape {
static Inkscape::XML::Document *loadImpl( std::string const& prefsFilename, Glib::ustring & errMsg );
@@ -777,8 +779,6 @@ double Preferences::_extractDouble(Entry const &v)
double Preferences::_extractDouble(Entry const &v, Glib::ustring const &requested_unit)
{
- static Inkscape::Util::UnitTable unit_table; // load the unit_table once by making it static
-
double val = _extractDouble(v);
Glib::ustring unit = _extractUnit(v);