Clear crop with c+click, issue 392
This commit is contained in:
@@ -441,6 +441,17 @@ void Crop::selectPressed () {
|
||||
void Crop::notifyListener () {
|
||||
|
||||
if (listener && enabled->get_active ())
|
||||
if (nw == 1 && nh == 1) {
|
||||
econn.block (true);
|
||||
enabled->set_active (false);
|
||||
econn.block (false);
|
||||
nx = (int)x->get_value ();
|
||||
ny = (int)x->get_value ();
|
||||
nw = (int)w->get_value ();
|
||||
nh = (int)h->get_value ();
|
||||
listener->panelChanged (EvCrop, M("GENERAL_DISABLED"));
|
||||
}
|
||||
else
|
||||
listener->panelChanged (EvCrop, Glib::ustring::compose ("%1=%2, %3=%4\n%5=%6, %7=%8", M("TP_CROP_X"), nx, M("TP_CROP_Y"), ny, M("TP_CROP_W"), nw, M("TP_CROP_H"), nh));
|
||||
}
|
||||
|
||||
@@ -944,8 +955,6 @@ void Crop::cropInit (int &x, int &y, int &w, int &h) {
|
||||
econn.block (true);
|
||||
enabled->set_active (1);
|
||||
econn.block (false);
|
||||
g_idle_add (refreshSpinsUI, new RefreshSpinHelper (this, false));
|
||||
// Glib::signal_idle().connect (sigc::mem_fun(*this, &Crop::refreshSpins));
|
||||
}
|
||||
|
||||
void Crop::cropResized (int &x, int &y, int& x2, int& y2) {
|
||||
|
Reference in New Issue
Block a user