From 8b78f0cdf70807c39a51cb0f7adbedda4357883c Mon Sep 17 00:00:00 2001 From: mid <> Date: Sun, 12 Oct 2025 12:19:46 +0300 Subject: [PATCH] fix preview resizing --- ui/frame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/frame.cpp b/ui/frame.cpp index 68e97c4..e7665a8 100644 --- a/ui/frame.cpp +++ b/ui/frame.cpp @@ -992,7 +992,7 @@ void ImageViewer::SetImage(CHiImage *chim) { ResizeImage(siez); } void ImageViewer::ResizeImage(float size) { - float w = size, h = (float) bufH / bufW * siez; + float w = size, h = (float) bufH / bufW * size; if(w <= 1 || h <= 1) { return;