Lines 429-435
public abstract class Photo : PhotoSourc
Link Here
|
429 |
|
429 |
|
430 |
// need to remove all transformations as they're keyed to the editable's |
430 |
// need to remove all transformations as they're keyed to the editable's |
431 |
// coordinate system |
431 |
// coordinate system |
432 |
internal_remove_all_transformations(false); |
432 |
remove_all_transformations(false); |
433 |
} |
433 |
} |
434 |
} |
434 |
} |
435 |
|
435 |
|
Lines 1519-1525
public abstract class Photo : PhotoSourc
Link Here
|
1519 |
row.master = original_master; |
1519 |
row.master = original_master; |
1520 |
row.master.copy_from(reimport_state.row.master); |
1520 |
row.master.copy_from(reimport_state.row.master); |
1521 |
if (!reimport_state.metadata_only) |
1521 |
if (!reimport_state.metadata_only) |
1522 |
internal_remove_all_transformations(false); |
1522 |
remove_all_transformations(false); |
1523 |
} |
1523 |
} |
1524 |
|
1524 |
|
1525 |
if (reimport_state.metadata != null) |
1525 |
if (reimport_state.metadata != null) |
Lines 1596-1602
public abstract class Photo : PhotoSourc
Link Here
|
1596 |
lock (row) { |
1596 |
lock (row) { |
1597 |
editable = reimport_state.backing_state; |
1597 |
editable = reimport_state.backing_state; |
1598 |
set_orientation(reimport_state.backing_state.original_orientation); |
1598 |
set_orientation(reimport_state.backing_state.original_orientation); |
1599 |
internal_remove_all_transformations(false); |
1599 |
remove_all_transformations(false); |
1600 |
} |
1600 |
} |
1601 |
} else { |
1601 |
} else { |
1602 |
set_orientation(reimport_state.backing_state.original_orientation); |
1602 |
set_orientation(reimport_state.backing_state.original_orientation); |
Lines 2820-2830
public abstract class Photo : PhotoSourc
Link Here
|
2820 |
return committed; |
2820 |
return committed; |
2821 |
} |
2821 |
} |
2822 |
|
2822 |
|
2823 |
public void remove_all_transformations() { |
2823 |
public void remove_all_transformations(bool notify = true) { |
2824 |
internal_remove_all_transformations(true); |
|
|
2825 |
} |
2826 |
|
2827 |
private void internal_remove_all_transformations(bool notify) { |
2828 |
bool is_altered = false; |
2824 |
bool is_altered = false; |
2829 |
lock (row) { |
2825 |
lock (row) { |
2830 |
is_altered = PhotoTable.get_instance().remove_all_transformations(row.photo_id); |
2826 |
is_altered = PhotoTable.get_instance().remove_all_transformations(row.photo_id); |
Lines 3907-3913
public abstract class Photo : PhotoSourc
Link Here
|
3907 |
// transformations are in the master's coordinate system, not the editable's ... don't |
3903 |
// transformations are in the master's coordinate system, not the editable's ... don't |
3908 |
// notify photo is altered *yet* because update_editable will notify, and want to avoid |
3904 |
// notify photo is altered *yet* because update_editable will notify, and want to avoid |
3909 |
// stacking them up |
3905 |
// stacking them up |
3910 |
internal_remove_all_transformations(false); |
3906 |
remove_all_transformations(false); |
3911 |
update_editable(false, file_format.create_reader(file.get_path())); |
3907 |
update_editable(false, file_format.create_reader(file.get_path())); |
3912 |
} |
3908 |
} |
3913 |
|
3909 |
|
Lines 4077-4083
public abstract class Photo : PhotoSourc
Link Here
|
4077 |
} |
4073 |
} |
4078 |
|
4074 |
|
4079 |
if (remove_transformations) |
4075 |
if (remove_transformations) |
4080 |
internal_remove_all_transformations(false); |
4076 |
remove_all_transformations(false); |
4081 |
|
4077 |
|
4082 |
if (has_editable) { |
4078 |
if (has_editable) { |
4083 |
notify_baseline_replaced(); |
4079 |
notify_baseline_replaced(); |