PhotoCraft: An open-source, photo editor written by scratch in pure Rust
Vanishing Point: skip the source window read when it is disabled (#7491)
jlange4277f12437d4
diff --git a/crates/algo/src/vanishing.rs b/crates/algo/src/vanishing.rsindex 87e55f873..307737197 100644--- a/crates/algo/src/vanishing.rs+++ b/crates/algo/src/vanishing.rs@@ -376,8 +376,10 @@ pub fn clone_stroke(scene: &Scene, surf: &mut Surface, source: [f64; 2], points:|| u64::from(win.area.width()) * u64::from(win.area.height()) > 4 * dest_px{win.area = Rect::new(0, 0, 0, 0);+ win.data.clear();+ } else {+ src_copy.read_region_into(win.area, &mut win.data);}- src_copy.read_region_into(win.area, &mut win.data);let mut data = surf.read_region(area);let w = area.width() as usize;let mut changed = false;