diff --git a/cg/cg0200.cpp b/cg/cg0200.cpp index ef98ab5ae..ac0ad9af1 100755 --- a/cg/cg0200.cpp +++ b/cg/cg0200.cpp @@ -574,7 +574,7 @@ bool TClifo_application::indsp_notify(int r, KEY key) // request to add the row #r // To avoid rewriting of existing record. // To avoid inserts in the middle of the sheet - if (r != -1 && indsp.items() > r) + if (r != -1 && indsp.items() > (r+1)) { error_box("Si possono aggiungere indirizzi solo alla fine"); return FALSE; //Refuse permission