Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/qtgui/GeometryPanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ void GeometryPanel::setupUi() {
"allows it anywhere inside the image, and values above 1 allow it "
"proportionally outside the image. Useful when a scanner image is a "
"crop far from the scanner lens optical axis.",
QStringLiteral("geometry.fit.lens_center_distance"));
QStringLiteral("geometry.fit.lens_center_distance"), true);

m_lensMessageLabel = new QLabel();
configureDynamicStatusLabel(
Expand Down Expand Up @@ -259,7 +259,7 @@ void GeometryPanel::setupUi() {
"Continuous rotation in degrees in the libcolorscreen final plane. "
"Unlike scan rotation this is not restricted to 90-degree steps and is "
"saved in the parameter file.",
QStringLiteral("geometry.final.rotation"));
QStringLiteral("geometry.final.rotation"), true);
QCheckBox *finalMirrorCheck = addCheckboxParameter(
"Mirror final image",
[](const ParameterState &s) { return s.scrToImg.final_mirror; },
Expand Down
12 changes: 12 additions & 0 deletions src/qtgui/WorkspaceChurnSmoke.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -787,6 +787,18 @@ if (!workflowSummary || !workflowToggle || !workflowStages ||
"Geometry stable keys crossed the document/UI-state boundary"));
return;
}
const QStringList geometryDefaultKeys = {
QStringLiteral("geometry.fit.lens_center_distance"),
QStringLiteral("geometry.final.rotation")};
for (const QString &key : geometryDefaultKeys) {
QToolButton *reset = findParameterResetButton(key);
if (!reset || !reset->property("parameterDefaultValue").isValid()) {
fail(QStringLiteral(
"Workspace churn lost Geometry default/reset metadata for %1")
.arg(key));
return;
}
}

// Image Layer is another complete stable-key panel. Its source choice
// and RGB-mix values are saved ParameterState; the three area/channel
Expand Down
Loading