Fix wrong bounding box calculation for initial arrange item.

This commit is contained in:
tamasmeszaros 2020-01-09 14:21:01 +01:00
parent 5bb9ba64c2
commit 7fd4800e7c

View File

@ -1116,12 +1116,8 @@ private:
for(Item& item : items_) item.translate(d);
}
void setInitialPosition(Item& item) {
auto sh = item.rawShape();
sl::translate(sh, item.translation());
sl::rotate(sh, item.rotation());
Box bb = sl::boundingBox(sh);
void setInitialPosition(Item& item) {
Box bb = item.boundingBox();
Vertex ci, cb;
auto bbin = sl::boundingBox(bin_);