Drawing locks may invalidate Vis() iterator.

This commit is contained in:
Bartosz Taudul 2019-06-09 17:46:59 +02:00
parent 80dff1ede1
commit 2aa6f70765

View File

@ -2032,7 +2032,7 @@ void View::DrawZones()
vis.offset = 0;
continue;
}
bool& showFull = vis.showFull;
bool showFull = vis.showFull;
const auto yPos = AdjustThreadPosition( vis, wpos.y, offset );
const auto oldOffset = offset;
@ -2260,7 +2260,7 @@ void View::DrawZones()
if( ImGui::IsMouseClicked( 0 ) )
{
showFull = !showFull;
Vis( v ).showFull = !showFull;
}
if( last >= 0 && ImGui::IsMouseClicked( 2 ) )
{