added a condition that I missed
This commit is contained in:
parent
02b735c6ae
commit
c241dd1e4a
1 changed files with 4 additions and 1 deletions
|
|
@ -1781,12 +1781,15 @@ void MainWindow::addparameter(const char *fulltext){
|
|||
string MainWindow::getParameter(string fulltext, int loc){
|
||||
|
||||
int start = 0;
|
||||
if( loc<1){
|
||||
return " ";
|
||||
}
|
||||
for(; start<fulltext.length() ; start++){
|
||||
|
||||
if(fulltext[start]=='\n')
|
||||
loc--;
|
||||
|
||||
if(loc==1)
|
||||
if(loc<=1)
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue