diff --git a/QModelViewer/cropdialog.cpp b/QModelViewer/cropdialog.cpp index 8848f45..4cf9e56 100644 --- a/QModelViewer/cropdialog.cpp +++ b/QModelViewer/cropdialog.cpp @@ -82,7 +82,7 @@ CropDialog::CropDialog(QWidget* parent, MvDoc* doc) { ui->doubleSpinBoxYMax->setMinimum(val); } - doc->crop(mYMin, mYMax, mYMin, mYMax, mZMin, mZMax, mCropAngle); + doc->crop(mXMin, mXMax, mYMin, mYMax, mZMin, mZMax, mCropAngle); }); connect(ui->doubleSpinBoxYMax, QOverload::of(&QDoubleSpinBox::valueChanged), [=](double val) { @@ -127,7 +127,7 @@ CropDialog::CropDialog(QWidget* parent, MvDoc* doc) { ui->doubleSpinBoxZMax->setMinimum(val); } - doc->crop(mZMin, mZMax, mYMin, mYMax, mZMin, mZMax, mCropAngle); + doc->crop(mXMin, mXMax, mYMin, mYMax, mZMin, mZMax, mCropAngle); }); connect(ui->doubleSpinBoxZMax, QOverload::of(&QDoubleSpinBox::valueChanged), [=](double val) {