Searched defs:newUnit (Results 1 - 1 of 1) sorted by relevance

/inkscape/src/ui/widget/
H A Dunit-tracker.cpp217 Inkscape::Util::Unit const *newUnit = unit_table.getUnit(newAbbr); member in class:Inkscape::UI::Widget::Inkscape::Util
218 _activeUnit = newUnit;
221 _fixupAdjustments(unit, newUnit);
244 void UnitTracker::_fixupAdjustments(Inkscape::Util::Unit const *oldUnit, Inkscape::Util::Unit const *newUnit) argument
253 && (newUnit->type == Inkscape::Util::UNIT_TYPE_DIMENSIONLESS) )
255 val = newUnit->factor * 100;
258 && (newUnit->type != Inkscape::Util::UNIT_TYPE_DIMENSIONLESS) )
261 val = Inkscape::Util::Quantity::convert(_priorValues[adj], "px", newUnit);
264 val = Inkscape::Util::Quantity::convert(oldVal, oldUnit, newUnit);

Completed in 364 milliseconds