From 5cc4c29bd2a0c234abe99f6fdb5cf55a03ea2c83 Mon Sep 17 00:00:00 2001 From: "Charlton, Scott R" Date: Sun, 5 Feb 2023 16:38:11 -0700 Subject: [PATCH] Closes #86 (#87) --- QModelViewer/cropdialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {