WIP still with arrange return value.

This commit is contained in:
tamasmeszaros 2019-07-03 19:24:41 +02:00
parent b5215dae1b
commit e81f8a5fd9
8 changed files with 78 additions and 79 deletions

View file

@ -192,7 +192,7 @@ public:
return Unit(width())*height();
}
static inline _Box infinite(const P &center);
static inline _Box infinite(const P &center = {TCoord<P>(0), TCoord<P>(0)});
};
template<class S> struct PointType<_Box<S>> {

View file

@ -908,7 +908,8 @@ private:
item.removeOffset();
});
if(stopfn_ && !stopfn_()) { // Ignore results if nesting was stopped.
if(!stopfn_ || (stopfn_ && !stopfn_())) {
// Ignore results if nesting was stopped.
const PackGroup& bins = lastResult();
unsigned binidx = 0;
for(auto& bin : bins) {