mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-10 01:50:22 -06:00
Clipboard: compare the PNG scale directly (clippy neg_cmp_op_on_partial_ord)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user