aheinecke added a comment.
To clarify: d->m_undoStack->push( uc ); results in: EditFormTextCommand::redo() https://cgit.kde.org/okular.git/tree/core/documentcommands.cpp#n513 which calls: m_docPriv->notifyFormChanges( m_pageNumber ); https://cgit.kde.org/okular.git/tree/core/document.cpp#n3435 That triggers the recalculate. So it is duplicated here. REPOSITORY R223 Okular REVISION DETAIL https://phabricator.kde.org/D12825 To: aheinecke, aacid Cc: okular-devel, ngraham, aacid
