Fix: crop wasn't working after save
This commit is contained in:
parent
329a1f857e
commit
cd3a0e3324
|
|
@ -193,17 +193,14 @@ fn load_image(
|
||||||
prop.rgba = saved_prop.rgba;
|
prop.rgba = saved_prop.rgba;
|
||||||
prop.is_saved = true;
|
prop.is_saved = true;
|
||||||
use_defaults = false;
|
use_defaults = false;
|
||||||
let saved = prop.is_saved;
|
|
||||||
drop(prop);
|
drop(prop);
|
||||||
if saved {
|
|
||||||
if let Some((x, y)) = saved_prop.crop_position {
|
|
||||||
cont.apply_crop_pos(x, y);
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
match crop {
|
match crop {
|
||||||
|
Some((x, y)) => cont.apply_crop_pos(x, y),
|
||||||
|
None => match saved_prop.crop_position {
|
||||||
Some((x, y)) => cont.apply_crop_pos(x, y),
|
Some((x, y)) => cont.apply_crop_pos(x, y),
|
||||||
None => cont.apply_crop(),
|
None => cont.apply_crop(),
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue