mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Move check out of loop.
This commit is contained in:
parent
0d8b79f6c9
commit
286a6cfe0a
@ -1295,6 +1295,7 @@ bool View::DrawZoneFrames( const FrameData& frames )
|
||||
int64_t prevEnd = -1;
|
||||
int64_t endPos = -1;
|
||||
bool tooltipDisplayed = false;
|
||||
const auto activeFrameSet = m_frames == &frames;
|
||||
|
||||
for( int i = zrange.first; i < zrange.second; i++ )
|
||||
{
|
||||
@ -1355,7 +1356,7 @@ bool View::DrawZoneFrames( const FrameData& frames )
|
||||
prev = -1;
|
||||
}
|
||||
|
||||
if( m_frames == &frames )
|
||||
if( activeFrameSet )
|
||||
{
|
||||
if( fbegin >= m_zvStart && endPos != fbegin )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user