Bug 260084

Summary: page number variable is very inconsistent
Product: [Applications] calligrawords Reporter: Thomas Zander <zander>
Component: generalAssignee: Calligra Words Bugs <calligra-words-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: cbo, swathi.vegesna999
Priority: NOR    
Version: 2.0   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description David Faure 2010-12-16 00:29:44 UTC


---- Reported by zander@kde.org 2009-09-11 11:18:23 ----

Insert some variables like 'page number' and select the text.
Copy the text.

Somewhere else in the document, preferably on another page, paste the clipboard.
The pasted page number variable will show inconsistent but certainly incorrect data.



--- Bug imported by faure@kde.org 2010-12-16 00:31  ---

This bug was previously known as bug 207060.

Comment 1 Camilla Boemann 2015-02-09 11:54:55 UTC
*** Bug 286679 has been marked as a duplicate of this bug. ***
Comment 2 Camilla Boemann 2015-02-09 12:00:26 UTC
though completely new layout this bug  or seems to still be around , or at least similar symptoms

It's not just on copy/paste it becomes wrong - it generally just doesn't show the right values
Comment 3 Camilla Boemann 2015-02-09 21:29:47 UTC
Git commit bb9269b667535b1d5989a3d7ed59b013b0c250b0 by C. Boemann.
Committed on 09/02/2015 at 20:46.
Pushed by boemann into branch 'calligra/2.9'.

pagenumber variable was updated way too often into inconsistent values
we should only change the value when called during layout, not during paint

M  +21   -9    libs/textlayout/KoTextDocumentLayout.cpp

http://commits.kde.org/calligra/bb9269b667535b1d5989a3d7ed59b013b0c250b0