1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-09-18 17:10:55 +02:00

Correct boundaries of the background cell

This commit is contained in:
Paul Licameli 2017-06-16 17:05:12 -04:00
parent 773dad3221
commit f858a7bd9c

View File

@ -2634,7 +2634,6 @@ TrackPanel::FoundCell TrackPanel::FindCell(int mouseX, int mouseY)
std::max( 0, std::max( 0,
rect.y - kTopMargin + rect.height ) ); rect.y - kTopMargin + rect.height ) );
rect.height = size.y - rect.y; rect.height = size.y - rect.y;
GetSize(&rect.width, &rect.height);
return { return {
nullptr, mpBackground.get(), nullptr, mpBackground.get(),
CellType::Background, rect CellType::Background, rect