Modified how ROFSTLookup object is obtained

This commit is contained in:
Rich
2014-02-10 21:05:16 +00:00
parent dada7102e7
commit 246cd760e8
3 changed files with 9 additions and 7 deletions

View File

@@ -100,14 +100,15 @@ namespace DataLoader
rofst.Dispose();
// Now load any images in... type 8: // Intergrated Graphics RO type
if (rofstinfo.ROFSTLookup != null)
ROFSTLookup mylookup = rofstinfo.GetROFSTLookup(DocVersionInfo.Get(docver.VersionID));
if (mylookup != null)
{
for (int i = 0; i < rofstinfo.ROFSTLookup.myHdr.myDbs.Length; i++)
for (int i = 0; i < mylookup.myHdr.myDbs.Length; i++)
{
// walk through the rofst 'database' searching for
// all nodes that are integrated graphics, i.e. type 8.
if (rofstinfo.ROFSTLookup.myHdr.myDbs[i].children != null)
MigrateRoFstGraphics(roDbpath, rofstinfo.ROFSTLookup.myHdr.myDbs[i].children, rodb);
if (mylookup.myHdr.myDbs[i].children != null)
MigrateRoFstGraphics(roDbpath, mylookup.myHdr.myDbs[i].children, rodb);
}
}
ROImageInfo.FlagImagesZipped();