Commit 481d8e40 authored by Alexab's avatar Alexab
Browse files

Gui/bcb: minor update #3

--HG--
branch : MockCompsTest
parent 8cc664bdc9b3
......@@ -435,12 +435,14 @@ void __fastcall TUSeriesControlForm::BitBtn1Click(TObject *Sender)
++I;
}
I=DelWatchList.begin();
while(I != DelWatchList.end())
I=DelWatchList.end();
if(I !=DelWatchList.begin())
do
{
--I;
GrSender->Del(I->first);
++I;
}
while(I != DelWatchList.begin());
}
else
......@@ -588,7 +590,7 @@ void __fastcall TUSeriesControlForm::Edit4Exit(TObject *Sender)
return;
}
if(index >= WatchList.size())
if(WatchList.find(index) == WatchList.end())
return;
WatchList[index].YShift=yshift;
......@@ -656,7 +658,8 @@ void __fastcall TUSeriesControlForm::DelPointButtonClick(TObject *Sender)
map<int,TUWatchInfo>::iterator I;
I=WatchList.find(StrToInt(StringGrid2->Cells[0][StringGrid2->Row]));
int del_index=StrToInt(StringGrid2->Cells[0][StringGrid2->Row]);
I=WatchList.find(del_index);
DelWatchList[I->first]=I->second;
WatchList.erase(I);
UpdateInfo();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment