Summary: | assert when ungrouping group | ||
---|---|---|---|
Product: | [Unmaintained] kword | Reporter: | T Zachmann <t.zachmann> |
Component: | general | Assignee: | KOffice Bug Wranglers <koffice-bugs-null> |
Status: | RESOLVED UNMAINTAINED | ||
Severity: | normal | CC: | cfeck |
Priority: | NOR | ||
Version: | git | ||
Target Milestone: | Persona: Berna | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | document to reproduce the problem |
Description
T Zachmann
2009-10-15 09:04:38 UTC
Created attachment 37589 [details]
document to reproduce the problem
Ungroup the 2 orange rectangles to reproduce the problem
Quick guess, the group was a frame, now ungrouping means each of the shapes has to be a frame (which decorates a shape). If thats missing then the assert comes. I just noticed that grouping two frames leads to there being 3 frames, which is also incorrect. I think moving to normal is wrong as it will crash when the assert is not in, so crash as severity is right. When you are right, you are right. Setting to 'crash' severity. Crashes in all KOffice applications, though with a different backtrace. I notice that the d->oldInheritTransform isn't correctly initialized as the constructor call by the ungroup command doesn't call init() I tried this change, but that causes the ungrouped shapes to disappear from the document: Index: commands/KoShapeGroupCommand.cpp =================================================================== --- commands/KoShapeGroupCommand.cpp (Revision 1145886) +++ commands/KoShapeGroupCommand.cpp (Arbeitskopie) @@ -78,6 +78,7 @@ : QUndoCommand(parent), d(&dd) { + d->init(this); } void KoShapeGroupCommandPrivate::init(QUndoCommand *q) SVN commit 1151057 by zander: Also store the inherit-transform here Spotted by Sven, thanks. CCBUG:210640 M +1 -0 KoShapeUngroupCommand.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1151057 Thank you for your bug report or feature suggestion. The "KOffice" application suite is no longer maintained, and all tickets are now closed. We recommend to switch to the "Calligra" application suite, which has replacements for all unmaintained KOffice applications: - KWord was replaced with Calligra Words - KPlato was replaced with Calligra Plan For more information, see http://en.wikipedia.org/wiki/Calligra_Suite (This is an automatic message from the KDE bug triaging team) |