Summary: | Wrong layout after undo | ||
---|---|---|---|
Product: | [Applications] calligrawords | Reporter: | Inge Wallin <inge> |
Component: | general | Assignee: | Calligra Words Bugs <calligra-words-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 2.9 Pre-Alpha | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/calligra/b0c9d4cbff5ed35ddf91042a4f2719a84e7b29dc | Version Fixed In: | |
Sentry Crash Report: |
Description
Inge Wallin
2015-01-15 10:46:14 UTC
Git commit b0c9d4cbff5ed35ddf91042a4f2719a84e7b29dc by C. Boemann. Committed on 15/01/2015 at 14:05. Pushed by boemann into branch 'calligra/2.9'. Fix undo redo of textranges - we might have swapped anchor and pos in general that would not be that big a deal if not for a qt bug which makes the anchor travel even if the qtextcursor has keepPositionOnInsert() == true There was another part to this bug - we didn't make sure the text was relayouted so in short: the anchor was lost (misplaced) and the relayout was never initiated M +6 -6 libs/kotext/KoTextRange.cpp M +2 -0 libs/kotext/commands/DeleteAnchorsCommand.cpp http://commits.kde.org/calligra/b0c9d4cbff5ed35ddf91042a4f2719a84e7b29dc |