Repository navigation
Fix setting waveform scale using a scriptable - #10884
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI (base), Organization UI (inherited) Review profile: CHILL Plan: Pro Run ID: 📥 CommitsReviewing files that changed from the base of the PR and between 6e7b74dd1bf6f565d02235660f247ba58f990c06 and 45518c3. 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThis change modifies the switch statement in SetTrackVisualsCommand::ApplyInner that maps mScaleType to WaveformSettings scale enums. Previously cases fell through; the updated code adds an explicit default label and break-terminated cases so each in-range mScaleType selects its corresponding WaveformSettings::st* value, and out-of-range values fall into the default path (stLinearAmp). Estimated code review effort🎯 2 (Simple) | ⏱️ ~5 minutes 🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Oh.. What a bug... It should be caught by the compiler if we ever manage to reduce the number of warnings and enable Werror. @DavidBailes thank you! |
Problem: Setting the waveform scale type using a scriptable always results in the scale type being set to Linear (db). Fix: In SetTrackVisualsCommand::ApplyInner(), insert missing break statements within a switch statement.
Resolves: #4601
Problem:
Setting the waveform scale type using a scriptable always results in the scale type being set to Linear (db).
Fix:
In SetTrackVisualsCommand::ApplyInner(), insert missing break statements within a switch statement.
Recommended:
QA: