ZoomToRange() already enables pause.

This commit is contained in:
Bartosz Taudul 2018-06-02 22:09:07 +02:00
parent a3834a75f7
commit 1cddf8436c

View File

@ -810,7 +810,6 @@ bool View::DrawZoneFrames()
if( ImGui::IsMouseClicked( 2 ) )
{
ZoomToRange( fbegin, fend );
m_pause = true;
}
}
@ -3273,7 +3272,6 @@ void View::DrawMessages()
ImGui::PushID( v );
if( ImGui::Selectable( TimeToString( v->time - m_worker.GetFrameBegin( 0 ) ), m_msgHighlight == v, ImGuiSelectableFlags_SpanAllColumns ) )
{
m_pause = true;
const auto hr = std::max<uint64_t>( 1, ( m_zvEnd - m_zvStart ) / 2 );
ZoomToRange( v->time - hr, v->time + hr );
}