Bug 295604

Summary: The number of pages variable is not loaded correctly
Product: [Applications] calligrawords Reporter: Inge Wallin <inge>
Component: opendocumentAssignee: Calligra Words Bugs <calligra-words-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 2.4-snapshots   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: A document with the above mentioned text.

Description Inge Wallin 2012-03-09 12:38:22 UTC
Created attachment 69419 [details]
A document with the above mentioned text.

After entering the simple text "Page <x> / <y>" where
 <x> is the current page
 </y> is the total number of pages
and roundtripping the file (save/restart/load) the total number of pages is no longer shown.

See the attached file. Afaics the variable is saved correctly.
Comment 1 T Zachmann 2012-03-10 15:30:36 UTC
Git commit e4f7211557b4e258c4c2649ac9e90498f2bf2394 by Thorsten Zachmann.
Committed on 10/03/2012 at 16:25.
Pushed by zachmann into branch 'master'.

Display page count if no style is defined.

The page count variable should be shown if there is no  num-style defined.
Use the same way as is used for the page number.

This fixes roundtrip of saving page count variable.

Please review for backporting to 2.4

CCMAIL: calligra-devel@kde.org

M  +2    -1    plugins/variables/PageVariable.cpp

http://commits.kde.org/calligra/e4f7211557b4e258c4c2649ac9e90498f2bf2394
Comment 2 T Zachmann 2012-03-10 15:36:37 UTC
Git commit 2bb698421bc709d0fbe36d9d6be73a4ad8e83387 by Thorsten Zachmann.
Committed on 10/03/2012 at 16:25.
Pushed by zachmann into branch 'calligra/2.4'.

Display page count if no style is defined.

The page count variable should be shown if there is no  num-style defined.
Use the same way as is used for the page number.

This fixes roundtrip of saving page count variable.

Please review for backporting to 2.4

CCMAIL: calligra-devel@kde.org

Reviewed by: boemann
(cherry picked from commit e4f7211557b4e258c4c2649ac9e90498f2bf2394)

M  +2    -1    plugins/variables/PageVariable.cpp

http://commits.kde.org/calligra/2bb698421bc709d0fbe36d9d6be73a4ad8e83387