mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-23 23:03:55 +02:00
Fix: Can now drag double height toolbars onto start of last row, even when last row is single height.
I also simplified the code by (a) exiting from a loop as soon as we know the answer and by (b) not treating the initial case of a loop as 'special'.
This commit is contained in:
@@ -1003,7 +1003,7 @@ void ToolManager::OnMouse( wxMouseEvent & event )
|
||||
mIndicator->Hide();
|
||||
|
||||
// Decide which direction the arrow should point
|
||||
if( r.GetBottom() >= dr.GetHeight() )
|
||||
if( r.GetTop() >= dr.GetHeight() )
|
||||
{
|
||||
p.x = dr.GetLeft() + ( dr.GetWidth() / 2 );
|
||||
p.y = dr.GetBottom() - mDown->GetBox().GetHeight();
|
||||
|
Reference in New Issue
Block a user