Use code that finds the ROImage file based upon filename.

This commit is contained in:
Rich
2015-02-24 15:43:40 +00:00
parent 068dbfc005
commit 52c6e61b6a
3 changed files with 4 additions and 0 deletions

View File

@@ -836,6 +836,8 @@ namespace VEPROMS.CSLA.Library
bool imageROTokenReplaced = false;
string[] vals = val.Split("\n".ToCharArray());
ROImageInfo roImage = ROImageInfo.GetByROFstID_FileName(rofst.ROFstID, vals[0]);
if (roImage == null)
roImage = rofst.GetROImageByFilename(vals[0],sect);// need code to go and get an ROImaage if it exists
if (roImage != null)
{
ROImageFile roImageFile = new ROImageFile(roImage);