From 17c2a7added1c966ea2b9b8199566b119bebaea5 Mon Sep 17 00:00:00 2001 From: scheffle Date: Fri, 6 Sep 2024 11:38:46 +0200 Subject: [PATCH] fix resizing to previous size if width or height did not change (Part III) --- vstgui/plugin-bindings/vst3editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vstgui/plugin-bindings/vst3editor.cpp b/vstgui/plugin-bindings/vst3editor.cpp index cde5e6d67..058c7fead 100644 --- a/vstgui/plugin-bindings/vst3editor.cpp +++ b/vstgui/plugin-bindings/vst3editor.cpp @@ -1945,7 +1945,7 @@ bool VST3Editor::enableEditing (bool state) CCoord width = view->getWidth () * scaleFactor; CCoord height = view->getHeight () * scaleFactor; - if (canResize () == Steinberg::kResultTrue) + if (canResize () == Steinberg::kResultTrue && nonEditRect.isEmpty ()) { Steinberg::ViewRect tmp; if (getRect ().getWidth () != width)