Hi In my text undo patch there was one unwanted qDebug(), not needed in the final code. Please, remove it! It is line 3356 in pageitem_textframe.cpp "qDebug() << "ExpandParSel" << StartSel << LenSel;" Regards cezaryece