Make control lines hidden when switching mode
The program now exits control line editing mode when the perspective correction method is switched out of camera-based mode.
This commit is contained in:
parent
8d7a5546e1
commit
d76cf5cdae
@ -517,6 +517,11 @@ void PerspCorrection::methodChanged (void)
|
|||||||
} else if (method->get_active_row_number() == 1) {
|
} else if (method->get_active_row_number() == 1) {
|
||||||
pack_start (*camera_based);
|
pack_start (*camera_based);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If no longer in camera-based mode and control lines are being edited.
|
||||||
|
if (method->get_active_row_number() != 1 && lines_button_edit->get_active()) {
|
||||||
|
lines_button_edit->set_active(false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (listener) {
|
if (listener) {
|
||||||
@ -705,7 +710,10 @@ void PerspCorrection::linesEditButtonPressed(void)
|
|||||||
}
|
}
|
||||||
lines_button_h->set_active(false);
|
lines_button_h->set_active(false);
|
||||||
lines_button_v->set_active(false);
|
lines_button_v->set_active(false);
|
||||||
applyControlLines();
|
if (method->get_active_row_number() == 1) {
|
||||||
|
// Calculate perspective distortion if in camera-based mode.
|
||||||
|
applyControlLines();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user