---- Martin Owens <doctormo@...400...> wrote: [...]
There is an addition to the Selection class: largestItem(...) and smallestItem(...) which in turn call a private _sizeistItem(...) that allows any function to return the largest/smallest item by width, height or area. I'd have liked to use the width/height/area Geom::OptRect functions but they're missing in this specific class and I couldn't really tell why they were available to some Rects and not others since the code looks the same. (obviously libgeom changes are a no-go)
The main reason we have our own lib2geom copy is to be able to make changes to it! lib2geom changes are a YES-go! :-) However, don't commit the changes only to Inkscape's trunk; you will have to commit them to lib2geom too (otherwise they will be overwritten when updating our local copy from lib2geom's trunk).
Which Rects do have area functions? I think it'd be nice to add an area method to the Rect class in 2Geom.
regards, Johan