From daf82d40b96c36c1bf72c107ae9bad2d76edad5b Mon Sep 17 00:00:00 2001 From: Dave Corley Date: Sun, 25 Aug 2024 10:23:04 -0700 Subject: [PATCH] FIX(CSVRender::Object): Clamp scale edits in render window too --- apps/opencs/view/render/object.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/opencs/view/render/object.cpp b/apps/opencs/view/render/object.cpp index 4ad1aaca15..370c2ef59e 100644 --- a/apps/opencs/view/render/object.cpp +++ b/apps/opencs/view/render/object.cpp @@ -713,7 +713,7 @@ void CSVRender::Object::setScale(float scale) { mOverrideFlags |= Override_Scale; - mScaleOverride = scale; + mScaleOverride = std::clamp(scale, 0.5f, 2.0f); adjustTransform(); }