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

Handle undefined symbols in .ocd export #2035

Conversation

lpechacek
Copy link
Member

A real fix to the .ocd export issue reported by users. Feel free to edit/reimplement it to your liking.

This commit fixes multiple issues with .ocd export. Line and point
objects were exported with symbol number 0 while the typical value for
such objects is -1. Text object export routines didn't recognize the
undefined text symbol and choke on it, failing to export previously
imported objects.

Closes OpenOrienteeringGH-2012.
@dl3sdo
Copy link
Member

dl3sdo commented Feb 5, 2022

@lpechacek: thank you for providing the fix. Exporting the test map works fine as well as opening it with OCAD12.

@lpechacek
Copy link
Member Author

Given the positive feedback from testing, I'm merging the change.

@lpechacek lpechacek merged commit a419f73 into OpenOrienteering:master Mar 16, 2022
@lpechacek lpechacek deleted the issue-2012-ocd-undefined-symbol-export branch March 16, 2022 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants