WIP still with arrange return value.

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

No files matched your search

@@ -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>> {
@@ -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) {