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!
Bug report: NewStaticOutline |
Post Reply |
Author | |
IanK
Beginner Joined: 30 Nov 05 Status: Offline Points: 8 |
Post Options
Thanks(0)
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. |
|
Rowan
Moderator Group Joined: 10 Jan 09 Status: Offline Points: 398 |
Post Options
Thanks(0)
|
Hi Ian,
Please report your bug on the page below. Cheers, - Rowan.
|
|
IanK
Beginner Joined: 30 Nov 05 Status: Offline Points: 8 |
Post Options
Thanks(0)
|
Done, Rowan - will do the same for the documentation omission I just raised too!
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store