Instead of squares compare depth position.
--HG-- branch : develop
This commit is contained in:
parent
39f24d2dcc
commit
635922faec
|
@ -72,14 +72,7 @@ void VBestSquare::NewResult(const VBestSquareResData &data)
|
||||||
{
|
{
|
||||||
if (d->saveLength)
|
if (d->saveLength)
|
||||||
{
|
{
|
||||||
const QSizeF saveSpaceSize = IsPortrait() ? QSizeF(d->sheetSize.width(), data.bestSize.height()) :
|
if (data.depthPosition <= d->data.depthPosition)
|
||||||
QSizeF(data.bestSize.width(), d->sheetSize.height());
|
|
||||||
|
|
||||||
const QSizeF saveSpaceBestSize = IsPortrait() ? QSizeF(d->sheetSize.width(), d->data.bestSize.height()):
|
|
||||||
QSizeF(d->data.bestSize.width(), d->sheetSize.height());
|
|
||||||
|
|
||||||
if (Square(saveSpaceBestSize) > 0 && Square(saveSpaceSize) > 0
|
|
||||||
&& Square(saveSpaceSize) <= Square(saveSpaceBestSize))
|
|
||||||
{
|
{
|
||||||
SaveResult();
|
SaveResult();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user