do not disable auto-fill when enabling LCP distortion correction

This was a workaround for an old bug (#1791 and #3765) that is no longer necessary
This commit is contained in:
Alberto Griggio
2017-04-11 15:21:12 +02:00
parent e215ad4c6c
commit b625eafb68
3 changed files with 0 additions and 36 deletions

View File

@@ -119,28 +119,3 @@ void LensGeometry::setBatchMode (bool batchMode)
removeIfThere (this, autoCrop);
}
void LensGeometry::disableAutoFillIfActive ()
{
const auto func = [](gpointer data) -> gboolean {
GThreadLock lock; // Is this really needed?
LensGeometry* const instance = static_cast<LensGeometry*>(data);
if (!instance->batchMode) {
if (instance->fill->get_active()) {
instance->fillConn.block(true);
instance->fill->set_active(false);
if (instance->listener) {
instance->listener->panelChanged (EvTransAutoFill, M("GENERAL_DISABLED"));
}
instance->fillConn.block(false);
}
}
return FALSE;
};
idle_register.add(func, this);
}