Fix crash when there's no callstack.

This commit is contained in:
Bartosz Taudul 2018-07-22 00:13:23 +02:00
parent 59c188a18d
commit be40ee9dbc

View File

@ -4373,7 +4373,7 @@ void View::DrawFindZone()
ImGui::PopID();
ImGui::SameLine();
ImGui::TextColored( ImVec4( 0.5f, 0.5f, 0.5f, 1.0f ), "(%s) %s", RealToString( v->second.zones.size(), true ), TimeToString( v->second.time ) );
if( groupBy == FindZone::GroupBy::Callstack )
if( groupBy == FindZone::GroupBy::Callstack && v->first != 0 )
{
ImGui::SameLine();
SmallCallstackButton( "callstack", v->first, idx );