--- a/gui_editactions.cpp Sun May 05 17:04:42 2013 +0300 +++ b/gui_editactions.cpp Mon May 06 00:10:56 2013 +0300 @@ -519,7 +519,7 @@ LDObject* prev = g_curfile->object (idx - 1); LDBFC* bfc = dynamic_cast<LDBFC*> (prev); - if (bfc && bfc->eStatement == LDBFC::InvertNext) { + if (bfc && bfc->type == LDBFC::InvertNext) { // Object is prefixed with an invertnext, thus remove it. paHistory.push_back (new DelHistory ({idx - 1}, {bfc->clone ()}));