Move check out of loop.

This commit is contained in:
Bartosz Taudul 2018-10-05 21:03:04 +02:00
parent 0d8b79f6c9
commit 286a6cfe0a

View File

@ -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 )
{