Version: 1.5.1 (using KDE KDE 3.5.2) Installed from: Gentoo Packages OS: Linux i load the (to be) uploaded file... and try to remove the last/empty page. right click on the page to be deleted choose 'delete page' boom - the first page is gone and not the clicked upon. also, when undoing this by hitting CTRL-z the embedded kspread object is gone (separate bug?). thanks for hacking on kword
Created an attachment (id=17353) [details] testcase
Related to bug #125998 Also if you try to delete the last page; [KCrash handler] #5 0xb627e619 in KWPage::offsetInDocument (this=0x0) at KWPage.cpp:129 #6 0xb617ef28 in KWDocument::recalcFrames (this=0x8176378, fromPage=1, toPage=-1, flags=0) at KWDocument.cpp:981 #7 0xb617f179 in KWDocument::afterRemovePages (this=0x8176378) at KWDocument.cpp:4135 #8 0xb6252823 in KWInsertRemovePageCommand::doRemove (this=0x818fba8, pageNumber=1) at KWCommand.cpp:1820 #9 0xb62528c4 in KWInsertRemovePageCommand::execute (this=0x818fba8) at KWCommand.cpp:1756 #10 0xb61a8117 in KWView::deletePage (this=0x82fafd0) at KWView.cpp:3515 #11 0xb61b4918 in KWView::qt_invoke (this=0x82fafd0, _id=91, _o=0xbfecb2fc) at KWView.moc:636
KWord from 1.6-branch does now contain a fix to work around the crasher. The problem, that the wrong page got deleted still exists. Reason for that is, that the last page is invalid (does not contain any content / framesets). So, correct fix would be to don't display those last page and that would also prevent the crash.
You need to log in before you can comment on or make changes to this bug.