diff options
| author | Matthew Petroff <matthew@mpetroff.net> | 2013-07-17 04:25:40 +0000 |
|---|---|---|
| committer | Matthew Petroff <matthew@mpetroff.net> | 2013-07-17 04:25:40 +0000 |
| commit | c28e6d2bdeb2983698a4e4789de15570e0f3d161 (patch) | |
| tree | 69f70f261d802543b3ecd92798fd26723f528a8c /src/ui/widget/unit-tracker.cpp | |
| parent | Ported "widgets/text-toolbar.cpp" and "widgets/paintbucket.cpp" (diff) | |
| download | inkscape-c28e6d2bdeb2983698a4e4789de15570e0f3d161.tar.gz inkscape-c28e6d2bdeb2983698a4e4789de15570e0f3d161.zip | |
Fixed conversion factors and missed unit include removal.
(bzr r12380.1.12)
Diffstat (limited to 'src/ui/widget/unit-tracker.cpp')
| -rw-r--r-- | src/ui/widget/unit-tracker.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/widget/unit-tracker.cpp b/src/ui/widget/unit-tracker.cpp index b701c785e..df78e21dd 100644 --- a/src/ui/widget/unit-tracker.cpp +++ b/src/ui/widget/unit-tracker.cpp @@ -233,7 +233,7 @@ void UnitTracker::_fixupAdjustments(Inkscape::Util::Unit const oldUnit, Inkscape if ( (oldUnit.type != Inkscape::Util::UNIT_TYPE_DIMENSIONLESS) && (newUnit.type == Inkscape::Util::UNIT_TYPE_DIMENSIONLESS) ) { - val = 1.0 / newUnit.factor; + val = newUnit.factor; _priorValues[adj] = Inkscape::Util::Quantity::convert(oldVal, &oldUnit, &px); } else if ( (oldUnit.type == Inkscape::Util::UNIT_TYPE_DIMENSIONLESS) && (newUnit.type != Inkscape::Util::UNIT_TYPE_DIMENSIONLESS) ) |
