From 65b1e90e0f3050bf90e4264ace5dfdcf800cf200 Mon Sep 17 00:00:00 2001 From: Kathy Date: Fri, 24 Feb 2012 16:29:30 +0000 Subject: [PATCH] --- PROMS/VEPROMS.CSLA.Library/Extension/ROFSTExt.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/ROFSTExt.cs b/PROMS/VEPROMS.CSLA.Library/Extension/ROFSTExt.cs index 6b773e13..6455b32b 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/ROFSTExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/ROFSTExt.cs @@ -207,6 +207,7 @@ namespace VEPROMS.CSLA.Library { string rofstfilepath = rdi.FolderPath + @"\ro.fst"; DirectoryInfo di = new DirectoryInfo(rdi.FolderPath); + if (!di.Exists) return null; // check if this rofst has been loaded, i.e. dts on file versus dts in db... // if so, just make association with docversion. @@ -525,7 +526,7 @@ namespace VEPROMS.CSLA.Library if (myROImagesList.ContainsKey(key)) { int imageID = myROImagesList[key]; - if(myROImageIDs.Contains(imageID)) + if(!myROImageIDs.Contains(imageID)) myROImageIDs.Add(imageID); } else