mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-27 00:04:35 +00:00
Don't change time range limit when enabling it.
This commit is contained in:
parent
2682ae1af0
commit
9633617810
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user