1
0
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:
james.k.crook@gmail.com
2014-10-21 16:36:32 +00:00
parent a0f43759a0
commit e31644eda8
2 changed files with 52 additions and 60 deletions

View File

@@ -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();