diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2013-10-28 19:12:23 +0000 |
|---|---|---|
| committer | Johan B. C. Engelen <j.b.c.engelen@alumnus.utwente.nl> | 2013-10-28 19:12:23 +0000 |
| commit | 6a02dec0d72ba8a116d382a54d153d00b83d4c21 (patch) | |
| tree | f6d603c2cb454988039e4b5b92736969e3fabdc2 /src/util/units.cpp | |
| parent | fix crash (diff) | |
| download | inkscape-6a02dec0d72ba8a116d382a54d153d00b83d4c21.tar.gz inkscape-6a02dec0d72ba8a116d382a54d153d00b83d4c21.zip | |
unit display: fix typo
(bzr r12741)
Diffstat (limited to 'src/util/units.cpp')
| -rw-r--r-- | src/util/units.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/units.cpp b/src/util/units.cpp index 1023cfb6e..21f64fe72 100644 --- a/src/util/units.cpp +++ b/src/util/units.cpp @@ -463,7 +463,7 @@ double Quantity::value(char const *u) const } Glib::ustring Quantity::string(Unit const *u) const { - return Glib::ustring::format(std::fixed, std::setprecision(2), value(u)) + " " + unit->abbr; + return Glib::ustring::format(std::fixed, std::setprecision(2), value(u)) + " " + u->abbr; } Glib::ustring Quantity::string(Glib::ustring const &u) const { return string(unit_table.getUnit(u.c_str())); |
