Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export problem when OnBeforeNodeExport is not assigned #737

Closed
Brnoch opened this issue Nov 9, 2017 · 2 comments
Closed

Export problem when OnBeforeNodeExport is not assigned #737

Brnoch opened this issue Nov 9, 2017 · 2 comments
Assignees
Labels
Milestone

Comments

@Brnoch
Copy link

Brnoch commented Nov 9, 2017

the line 313 of VirtualTrees.Export causes a problem when the event is not defined:

CrackTree.OnBeforeNodeExport(CrackTree, etHTML, Run);

if I add a condition, everything's fine 👍

      if Assigned(CrackTree.OnBeforeNodeExport) then
        CrackTree.OnBeforeNodeExport(CrackTree, etHTML, Run);
@joachimmarder
Copy link
Contributor

Thanks for reporting this. The if condition 5 lines above looks strange too, here is a check for Assigned(CrackTree.OnBeforeNodeExport) but it does not make much sense here.

@Brnoch
Copy link
Author

Brnoch commented Nov 14, 2017

Thanks a lot for the fast fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants