From 2dad036b58c56a8cef00eb5e79f2eed802903a39 Mon Sep 17 00:00:00 2001 From: "v.audacity" Date: Tue, 7 Aug 2012 23:37:53 +0000 Subject: [PATCH] Comment about bug I found in trying to figure out this code. --- src/toolbars/DeviceToolBar.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/toolbars/DeviceToolBar.cpp b/src/toolbars/DeviceToolBar.cpp index 4657ff49a..f2b9c8127 100644 --- a/src/toolbars/DeviceToolBar.cpp +++ b/src/toolbars/DeviceToolBar.cpp @@ -419,6 +419,9 @@ void DeviceToolBar::RepositionCombos() // if the toolbar is docked then the width we should use is the project width. // as the toolbar's with can extend past this. GetClientSize(&w, &h); + + // FIX-ME: Note that there's some bug in here, in that even if the prefs show the toolbar + // docked, on initialization, this call to IsDocked() returns false. if (IsDocked()) { // If the toolbar is docked its width can be larger than what is actually viewable // So take the min. We don't need to worry about having another toolbar to the left off us