mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Fix crash.
This commit is contained in:
parent
2f645c589d
commit
155c9de767
@ -602,6 +602,7 @@ void View::DrawFrames()
|
|||||||
}
|
}
|
||||||
|
|
||||||
const auto zitbegin = std::lower_bound( m_frames.begin(), m_frames.end(), m_zvStart );
|
const auto zitbegin = std::lower_bound( m_frames.begin(), m_frames.end(), m_zvStart );
|
||||||
|
if( zitbegin == m_frames.end() ) return;
|
||||||
const auto zitend = std::lower_bound( m_frames.begin(), m_frames.end(), m_zvEnd );
|
const auto zitend = std::lower_bound( m_frames.begin(), m_frames.end(), m_zvEnd );
|
||||||
|
|
||||||
auto zbegin = (int)std::distance( m_frames.begin(), zitbegin );
|
auto zbegin = (int)std::distance( m_frames.begin(), zitbegin );
|
||||||
@ -684,6 +685,7 @@ void View::DrawZones()
|
|||||||
}
|
}
|
||||||
|
|
||||||
const auto zitbegin = std::lower_bound( m_frames.begin(), m_frames.end(), m_zvStart );
|
const auto zitbegin = std::lower_bound( m_frames.begin(), m_frames.end(), m_zvStart );
|
||||||
|
if( zitbegin == m_frames.end() ) return;
|
||||||
const auto zitend = std::lower_bound( m_frames.begin(), m_frames.end(), m_zvEnd );
|
const auto zitend = std::lower_bound( m_frames.begin(), m_frames.end(), m_zvEnd );
|
||||||
|
|
||||||
auto zbegin = (int)std::distance( m_frames.begin(), zitbegin );
|
auto zbegin = (int)std::distance( m_frames.begin(), zitbegin );
|
||||||
|
Loading…
Reference in New Issue
Block a user