B2023-020 – Link to RO data from new working draft crashes/update ro.fst issues
This commit is contained in:
@@ -1484,7 +1484,16 @@ namespace VEPROMS
|
||||
|
||||
foreach (DocVersionAssociation dva in _DocVersionConfig.MyDocVersion.DocVersionAssociations)
|
||||
{
|
||||
RODbInfo rdi = RODbInfo.Get(dva.ROFst_RODbID);
|
||||
// B2023-020: Link to RO data from new working draft crashes/various ro.fst issues. This code was using an
|
||||
// non-loaded rodbid from the docversion association (query was changed to not return related rofst data
|
||||
// to improve memory/performance). Instead, the SelectedROFst can be used to get the rodbid.
|
||||
int rodbid = SelectedROFst==null?-1:SelectedROFst.RODbID;
|
||||
if (rodbid < 1)
|
||||
{
|
||||
MessageBox.Show("Could not get associated ro.fst ", "No existing RO.FST");
|
||||
return;
|
||||
}
|
||||
RODbInfo rdi = RODbInfo.Get(rodbid); // B2023-020: use the rodbid from the SelectedROFst
|
||||
string rofstPath = rdi.FolderPath + @"\ro.fst";
|
||||
|
||||
if (!File.Exists(rofstPath))
|
||||
|
Reference in New Issue
Block a user