Searched refs:newUnit (Results 1 - 2 of 2) 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);
H A Dunit-tracker.h59 void _fixupAdjustments(Inkscape::Util::Unit const *oldUnit, Inkscape::Util::Unit const *newUnit);

Completed in 17 milliseconds