Commit dfb2a034 authored by Thorsten Zachmann's avatar Thorsten Zachmann

Fix inserting of shapes

Seems the last commit broke this. Using index to get the index with the needed
internal pointers fixes the problem.

BUG: 342122
parent 25ffee56
......@@ -65,7 +65,7 @@ void KoPADocumentModel::update()
emit layoutAboutToBeChanged();
emit layoutChanged();
if (m_document) {
dataChanged(createIndex(0, 0), createIndex(m_document->pageCount() - 1, columnCount() - 1));
dataChanged(index(0, 0), index(m_document->pageCount() - 1, columnCount() - 1));
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment