Don't change time range limit when enabling it.

This commit is contained in:
Bartosz Taudul 2020-07-31 16:19:35 +02:00
parent 2682ae1af0
commit 9633617810
2 changed files with 3 additions and 2 deletions

View File

@ -9006,7 +9006,7 @@ void View::DrawFindZone()
ImGui::SameLine();
if( ImGui::Checkbox( "Limit range", &m_findZone.range.active ) )
{
if( m_findZone.range.active )
if( m_findZone.range.active && m_findZone.range.min == 0 && m_findZone.range.max == 0 )
{
m_findZone.range.min = m_vd.zvStart;
m_findZone.range.max = m_vd.zvEnd;

View File

@ -60,7 +60,8 @@ class View
{
void StartFrame() { hiMin = hiMax = false; }
int64_t min, max;
int64_t min = 0;
int64_t max = 0;
bool active = false;
bool hiMin = false;
bool hiMax = false;