Modified how ROFSTLookup object is obtained
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user