Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > General Discussion
  New Posts New Posts RSS Feed - Bug report: NewStaticOutline
  FAQ FAQ  Forum Search   Register Register  Login Login

Bug report: NewStaticOutline

 Post Reply Post Reply
Author
Message
IanK View Drop Down
Beginner
Beginner


Joined: 30 Nov 05
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote IanK Quote  Post ReplyReply Direct Link To This Post Topic: Bug report: NewStaticOutline
    Posted: 01 Jun 10 at 11:35AM
My company's just purchased a "with source" update to our old iSEDQuickPDF library, and I'm currently going through our old (antique!) code and checking everything builds and works with the new library linked in.

In the course of this I've found what I'm 99.9% sure is a glitch in the NewStaticOutline method; in v7.19 the meat of this function is:

  if ValidOutlineID(Parent) then
  begin
    Result := [Stuff - removed to preserve copyright];
  end else
    Result := 0;


...which fails (returns 0) if a Parent value of 0 (= add root, rather than child, StaticOutline element) is specified as ValidOutlineID doesn't regard 0/Nil as a valid memory location.

The fix for this is - I think - to add the additional condition to the if statement so it becomes:

  if (Parent = 0) or ValidOutlineID(Parent) then

That line, with the additional condition, is already in place in the very similar NewOutline method.

Cheers,
Ian

P.S. Hope this is the right place for a bug report - couldn't see anywhere specific for them on the web page or in the forums.
Back to Top
Rowan View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 10 Jan 09
Status: Offline
Points: 398
Post Options Post Options   Thanks (0) Thanks(0)   Quote Rowan Quote  Post ReplyReply Direct Link To This Post Posted: 01 Jun 10 at 11:38AM
Hi Ian,

Please report your bug on the page below.


Cheers,
- Rowan.
Back to Top
IanK View Drop Down
Beginner
Beginner


Joined: 30 Nov 05
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote IanK Quote  Post ReplyReply Direct Link To This Post Posted: 01 Jun 10 at 11:47AM
Done, Rowan - will do the same for the documentation omission I just raised too! Smile
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store