1
0
mirror of https://github.com/ciromattia/kcc synced 2025-12-13 01:36:27 +00:00

fix crop checkbox

This commit is contained in:
Alex Xu
2025-09-02 11:54:11 -07:00
parent 0cc75ab1e7
commit 137d53672a

View File

@@ -254,6 +254,8 @@ class WorkerThread(QThread):
options.cropping = 1 options.cropping = 1
else: else:
options.cropping = 2 options.cropping = 2
else:
options.cropping = 0
if GUI.croppingBox.checkState() != Qt.CheckState.Unchecked: if GUI.croppingBox.checkState() != Qt.CheckState.Unchecked:
options.croppingp = float(GUI.croppingPowerValue) options.croppingp = float(GUI.croppingPowerValue)
options.preservemargin = GUI.preserveMarginBox.value() options.preservemargin = GUI.preserveMarginBox.value()
@@ -262,6 +264,8 @@ class WorkerThread(QThread):
options.interpanelcrop = 1 options.interpanelcrop = 1
else: else:
options.interpanelcrop = 2 options.interpanelcrop = 2
else:
options.interpanelcrop = 0
if GUI.borderBox.checkState() == Qt.CheckState.PartiallyChecked: if GUI.borderBox.checkState() == Qt.CheckState.PartiallyChecked:
options.white_borders = True options.white_borders = True
elif GUI.borderBox.checkState() == Qt.CheckState.Checked: elif GUI.borderBox.checkState() == Qt.CheckState.Checked: