mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Allow zooming to zones without end.
This commit is contained in:
parent
002a93e448
commit
fbe7e59319
@ -1927,9 +1927,10 @@ float View::GetZoneThickness( const Event& ev )
|
||||
|
||||
void View::ZoomToZone( const Event& ev )
|
||||
{
|
||||
if( ev.end - ev.start <= 0 ) return;
|
||||
const auto end = GetZoneEnd( ev );
|
||||
if( end - ev.start <= 0 ) return;
|
||||
m_zvStartNext = ev.start;
|
||||
m_zvEndNext = ev.end;
|
||||
m_zvEndNext = end;
|
||||
}
|
||||
|
||||
void View::ZoneTooltip( const Event& ev )
|
||||
|
Loading…
Reference in New Issue
Block a user