VectorCraft: An open-source, vector art tool written by scratch in pure Rust
Clipboard: compare the PNG scale directly (clippy neg_cmp_op_on_partial_ord)
bflatastic4ab16b7760be
diff --git a/crates/engine/src/cmd/clipboard/flavours.rs b/crates/engine/src/cmd/clipboard/flavours.rsindex 1a088cf3e..8e4c57d06 100644--- a/crates/engine/src/cmd/clipboard/flavours.rs+++ b/crates/engine/src/cmd/clipboard/flavours.rs@@ -327,7 +327,7 @@ impl Clipboard {// The encoder renders at no fewer than MIN_COPY_PNG_SCALE pixels a point: art// too large to fit COPY_PNG_SIDE at that scale gets no PNG, rather than one// of up to a gigabyte of pixels.- if !(scale >= MIN_COPY_PNG_SCALE) {+ if scale < MIN_COPY_PNG_SCALE {log::warn!("clipboard PNG: art {side} pt across is too large to copy as a picture");continue;}