+#else
+ while (par) {
+ // this has to be done before the delete
+ text->SetCursor(this, cursor, par, 0);
+ if (par->AutoDeleteInsets()){
+ a = true;
+ text->RedoParagraphs(this, cursor,
+ cursor.par()->next());
+ text->FullRebreak(this);
+ }
+ par = par->next();
+ }
+
+ // avoid forbidden cursor positions caused by error removing
+ if (tmpcursor.pos() > tmpcursor.par()->size())
+ tmpcursor.pos(tmpcursor.par()->size());
+#endif