Can't modify both variables.

This commit is contained in:
Bartosz Taudul 2017-10-13 15:31:38 +02:00
parent d1c43ef917
commit 5deb1c51dd

View File

@ -2119,7 +2119,7 @@ int View::DrawPlots( int offset, double pxns, const ImVec2& wpos, bool hover )
while( tmp != end )
{
if( tmp->val < min ) min = tmp->val;
if( tmp->val > max ) max = tmp->val;
else if( tmp->val > max ) max = tmp->val;
++tmp;
}
}