From 0e2fd0ec35ae12af5f11abb479ce2b3e9fd82a0e Mon Sep 17 00:00:00 2001 From: Leland Lucius Date: Mon, 20 Apr 2020 16:28:10 -0500 Subject: [PATCH] Bug 2393 - Device toolbar cannot be resized smaller after a toolbars reset --- src/toolbars/ToolBar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/toolbars/ToolBar.cpp b/src/toolbars/ToolBar.cpp index 144ace4b8..2145e82d5 100644 --- a/src/toolbars/ToolBar.cpp +++ b/src/toolbars/ToolBar.cpp @@ -568,7 +568,7 @@ void ToolBar::ReCreateButtons() // JKC we're going to allow all resizable toolbars to be resized // to 1 unit high, typically 27 pixels. wxSize sz2 = sz; - sz2.SetWidth(wxMax( sz2.GetX(), GetMinToolbarWidth())); + sz2.SetWidth(GetMinToolbarWidth()); sz2.y = tbs -1; SetMinSize(sz2);