Sequencer - Fixed zoom to beginning
Caused a crash due to startPos being negative
This commit is contained in:
parent
551bd56982
commit
6bae9ca7a4
1 changed files with 1 additions and 1 deletions
|
@ -799,7 +799,7 @@ void T_SyncViewImpl_::sequencerWidget( ) noexcept
|
|||
diff{ zMax - zMin };
|
||||
if ( diff > 4 ) {
|
||||
const float u( sync.durationUnits( ) );
|
||||
startPos = zMin * u / totalPixels;
|
||||
startPos = ImClamp( zMin * u / totalPixels , 0.f , u );
|
||||
if ( ( width - 2.f ) / u >= BarWidth ) {
|
||||
zoomLevel = 0;
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue