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