-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes issues discovered in the XML.cpp routines that are designed to …
…upgrade older docVersion documents on opening in the current docVersion of the application. Added an additional upgrade function: FromDocVersion6through9ToDocVersionCurrent() to be able to upgrade documents created before AI version 6.11.1 which stored filtered information on a following source phrase rather than a previous source phrase. Added code to the upgrade functions that populates the m_srcSinglePattern (xml ssp) and m_oldKey (xml okey) members when opening documents created as docVersion older than docVersion 10. Refactored the GetPreviousNonPlaceholderSrcPhrase() function which was failing to search previous source phrases to find a non-placeholder source phrase for storing filtered information. When called from routines in XML.cpp this function was getting into an infinite loop/crash situation. Fixed a crash that occurred when retrieving a document that was stored in the document history that was created with an older docVersion. The crash was due to a uninitialized pointer gpPreviousSrcPhrase in global space of the XML.cpp source file. Attempted to fix the failure to make the document "dirty" after opening a document that was upgraded from an older docVersion to the current docVersion. This involved in moving the pDoc->Modify(FALSE) to its previous location after the OnOpenDocument() call, to a position before that call, and placing a pDoc->Modify(TRUE) statement in the upgrade routines. It isn't clear if my changes worked, since it still seems necessary to move the phrasebox to make the document dirty after it is input.
- Loading branch information
Showing
7 changed files
with
389 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.