Repository navigation
Conversation
Commit 32e5e34 introduced new members to TrackPanel class, mIsPanning and mLastPanX, but they were not initialized when TrackPanel instances were constucted. Because of this, mIsPanning could be initialized to something true-ish, which manifested itself as scrolling to random place when trying to select part of the track in my Audacity builds. Fixes: 32e5e34 Signed-off-by: Ivan A. Melnikov <[email protected]>
- Fix random scrolling on selection bug (upstream PR: audacity/audacity#10011)
|
I can reproduce the problem on the debug version on Windows. I either get the selection bug, or the program crashes. |
|
Well, as it is often the case with uninitialized variables in C++, reproducing the issue depends on compiler options, OS settings and sheer luck. With my own build of Audacity 3.7.6 on x86_64 Linux I can reproduce the scrolling bug ~70% of times, and I've seen no crashes. And I could not reproduce the bug with this change applied as a patch. |
|
Sorry for missing this, thanks for patching it. |
|
@iv-m thanks for the fix, v3.7.6 is already out, please rebase on |
Sorry, I somehow missed Thank you for the merge! |
Recommended:
QA: