Fix handling of ImGui ID stack.

This commit is contained in:
Bartosz Taudul 2020-04-17 19:28:10 +02:00
parent c79c052528
commit b937ad101f

View File

@ -670,12 +670,12 @@ void SourceView::RenderSymbolSourceView( uint32_t iptotal, unordered_flat_map<ui
m_targetLine = v.second; m_targetLine = v.second;
SelectLine( v.second, &worker ); SelectLine( v.second, &worker );
} }
ImGui::PopID();
} }
else else
{ {
TextDisabledUnformatted( fstr ); TextDisabledUnformatted( fstr );
} }
ImGui::PopID();
} }
} }
else else
@ -758,12 +758,12 @@ void SourceView::RenderSymbolSourceView( uint32_t iptotal, unordered_flat_map<ui
m_targetLine = line; m_targetLine = line;
SelectLine( line, &worker ); SelectLine( line, &worker );
} }
ImGui::PopID();
} }
else else
{ {
TextDisabledUnformatted( fstr ); TextDisabledUnformatted( fstr );
} }
ImGui::PopID();
ImGui::NextColumn(); ImGui::NextColumn();
} }
ImGui::EndColumns(); ImGui::EndColumns();