Bug 33716 - wrong page numbers displayed
Summary: wrong page numbers displayed
Status: RESOLVED FIXED
Alias: None
Product: kghostview
Classification: Unmaintained
Component: general (show other bugs)
Version: 0.12
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: Wilco Greven
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-15 14:33 UTC by Jan Rothe
Modified: 2015-03-06 15:17 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 5.2.2
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Rothe 2001-10-15 14:26:39 UTC
(*** This bug was imported into bugs.kde.org ***)

Package:           kghostview
Version:           0.12 (using KDE 2.2.1 )
Severity:          normal
Installed from:    Debian Packages
Compiler:          gcc 2.95.4 20011006 (debian prerelease)
OS:                Linux
OS/Compiler notes: Not Specified

when opening a .ps-file that was generated e.g. by latex and that repeatedly started renumbering pages (eg preface numbers I-V then normal text pages 1-50 and then appendix numbering i-viii) the page numbers in the direct page access list are wrong. in the example above kghostview calls I-V of the preface (correctly) 1-5 then it continues with text page 1 enumerated as kghostview page 6.... this makes the it virtually impossible to select the correct pages in the page list. ghostview displays the correct page numbers.

thanks a lot
-- jan rothe

(Submitted via bugs.kde.org)
Comment 1 Wilco Greven 2001-10-15 14:42:22 UTC
Hello Jan

On Mon Oct 15 2001 at 02:26:39PM -0000 janr@tcs.inf.tu-dresden.de wrote:
> Package: kghostview
> Version: 0.12 (using KDE 2.2.1 )
> Severity: normal
> Installed from:    Debian Packages
> Compiler:          gcc 2.95.4 20011006 (debian prerelease)
> OS:                Linux
> OS/Compiler notes: Not Specified
> 
> when opening a .ps-file that was generated e.g. by latex and that repeatedly started renumbering pages (eg preface numbers I-V then normal text pages 1-50 and then appendix numbering i-viii) the page numbers in the direct page access list are wrong. in the example above kghostview calls I-V of the preface (correctly) 1-5 then it continues with text page 1 enumerated as kghostview page 6.... this makes the it virtually impossible to select the correct pages in the page list. ghostview displays the correct page numbers.

If you turn on "Show Page Names" in the Settings menu does it then show the
right page names?

Greetings
Wilco
Comment 2 Jan Rothe 2001-10-16 07:51:03 UTC
Wilco Greven writes:
   On Mon Oct 15 2001 at 02:26:39PM -0000 janr@tcs.inf.tu-dresden.de wrote:
   > Package: kghostview
   > Version: 0.12 (using KDE 2.2.1 )
   > Severity: normal
   > Installed from:    Debian Packages
   > Compiler:          gcc 2.95.4 20011006 (debian prerelease)
   > OS:                Linux
   > OS/Compiler notes: Not Specified
   > 
   > when opening a .ps-file that was generated e.g. by latex and that repeatedly started renumbering pages (eg preface numbers I-V then normal text pages 1-50 and then appendix numbering i-viii) the page numbers in the direct page access list are wrong. in the example above kghostview calls I-V of the preface (correctly) 1-5 then it continues with text page 1 enumerated as kghostview page 6.... this makes the it virtually impossible to select the correct pages in the page list. ghostview displays the correct page numbers.
   
   If you turn on "Show Page Names" in the Settings menu does it then show the
   right page names?
   
It works! Oh shit. I am stupid. Sorry for the confusion. Hmmm...

greetings and thanks for the quick response
-- jan
Comment 3 Wilco Greven 2001-10-16 08:42:01 UTC
On Tue Oct 16 2001 at 09:51:03AM +0200 Jan Rothe wrote:
> Wilco Greven writes:
>    On Mon Oct 15 2001 at 02:26:39PM -0000 janr@tcs.inf.tu-dresden.de wrote:
>    > Package: kghostview
>    > Version: 0.12 (using KDE 2.2.1 )
>    > Severity: normal
>    > Installed from:    Debian Packages
>    > Compiler:          gcc 2.95.4 20011006 (debian prerelease)
>    > OS:                Linux
>    > OS/Compiler notes: Not Specified
>    > 
>    > when opening a .ps-file that was generated e.g. by latex and that repeatedly started renumbering pages (eg preface numbers I-V then normal text pages 1-50 and then appendix numbering i-viii) the page numbers in the direct page access list are wrong. in the example above kghostview calls I-V of the preface (correctly) 1-5 then it continues with text page 1 enumerated as kghostview page 6.... this makes the it virtually impossible to select the correct pages in the page list. ghostview displays the correct page numbers.
>    
>    If you turn on "Show Page Names" in the Settings menu does it then show the
>    right page names?
>    
> It works! Oh shit. I am stupid. Sorry for the confusion. Hmmm..

This only indicates that something about that option or the
documentation can be improved. It's no stupidity from your side.

Greetings
Wilco
Comment 4 Daniel Vrátil 2015-03-06 15:17:42 UTC
Git commit 9a4f36f6973d6f9d712b6b3b1ff30f868d9910b9 by Dan Vrátil.
Committed on 06/03/2015 at 13:30.
Pushed by dvratil into branch 'Plasma/5.2'.

KDED: Make Generator maximally fool-proof

This change adds lots of checks (and asserts for devs) on validity of
the configs, outputs and modes and makes sure that we never try to
dereference a null pointer from outputs or modes.

Also renames some variables to make the code cleaner and easier to
understand.
Related: bug 326499, bug 326120, bug 327075
FIXED-IN: 5.2.2

M  +183  -84   kded/generator.cpp
M  +9    -7    kded/generator.h

http://commits.kde.org/kscreen/9a4f36f6973d6f9d712b6b3b1ff30f868d9910b9