From eb7f9667ba077d39c98b65b53622942ca19f18f0 Mon Sep 17 00:00:00 2001 From: df Date: Tue, 23 Feb 2021 00:13:08 +0000 Subject: [PATCH] Avoid negative CSS widths --- webif/html/browse/crop/crop.jim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/webif/html/browse/crop/crop.jim b/webif/html/browse/crop/crop.jim index 1c3fe09..f717956 100755 --- a/webif/html/browse/crop/crop.jim +++ b/webif/html/browse/crop/crop.jim @@ -37,6 +37,10 @@ puts "
" proc div {type left right} { set width $($right - $left) + if {$width < 0} { + # negative values are invalid for CSS width + set width 0 + } puts "
$type
" }