Skip to content

Handle undefined symbols in .ocd export - #2035

Merged
lpechacek merged 2 commits into
OpenOrienteering:masterfrom
lpechacek:issue-2012-ocd-undefined-symbol-export
Mar 16, 2022
Merged

Handle undefined symbols in .ocd export#2035
lpechacek merged 2 commits into
OpenOrienteering:masterfrom
lpechacek:issue-2012-ocd-undefined-symbol-export

Conversation

@lpechacek

Copy link
Copy Markdown
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.
ClosesOpenOrienteeringGH-2012.
@dl3sdo

Copy link
Copy Markdown
Member

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

@lpechacek

Copy link
Copy Markdown
MemberAuthor

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

@lpechacek
lpechacek merged commit a419f73 into OpenOrienteering:masterMar 16, 2022
@lpechacek
lpechacek deleted the issue-2012-ocd-undefined-symbol-export branch March 16, 2022 15:59
@dl3sdodl3sdo mentioned this pull request Apr 2, 2025
Sign up for freeto 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.

Ocad save fails - Internal Error: QByteArray ... ExportTextObject .. EntryV9

2 participants

@lpechacek@dl3sdo