Hi Sarathy.
Could you try with unit->abbr? Also Inkscape::Util::Unit const *const unit become into:Inkscape::Util::Unit const * unit
Cheers, Jabier.
On Wed, 2017-11-15 at 13:30 +0000, Parthasarathy R. wrote:
Hi, I am unable to get the stroke width for the path item in “mm”, Inkscape::Util::Unit const *const unit = unitSelector->getUnit(); for (std::vector<SPItem*>::const_iterator i = items.begin(); i != items.end(); ++i) { double sw = (*i)->style->stroke_width.computed; double ei = Inkscape::Util::Quantity::convert(sw, unit, "mm"); Please suggest proper way to get. Regards, Sarathy
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel