From a2d8712b83df40e6fdd5df688380ddfb61ff6d30 Mon Sep 17 00:00:00 2001 From: Rich Date: Fri, 20 Feb 2015 17:45:34 +0000 Subject: [PATCH] Add location information to the error log for RO Image problems --- PROMS/Volian.Print.Library/vlnParagraph.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PROMS/Volian.Print.Library/vlnParagraph.cs b/PROMS/Volian.Print.Library/vlnParagraph.cs index bf4df836..13ec5e84 100644 --- a/PROMS/Volian.Print.Library/vlnParagraph.cs +++ b/PROMS/Volian.Print.Library/vlnParagraph.cs @@ -971,7 +971,7 @@ namespace Volian.Print.Library DocVersionInfo dvi = proc.ActiveParent as DocVersionInfo; ROFstInfo rofst = dvi.DocVersionAssociations[0].MyROFst; ROImageInfo roImage = ROImageInfo.GetByROFstID_FileName(rofst.ROFstID, vals[0]); - if (roImage == null) roImage = rofst.GetROImageByFilename(vals[0]);// need code to go and get an ROImaage if it exists + if (roImage == null) roImage = rofst.GetROImageByFilename(vals[0],MyItemInfo);// need code to go and get an ROImaage if it exists if (roImage != null) { ROImageConfig rc = new ROImageConfig(roImage); @@ -2765,7 +2765,7 @@ namespace Volian.Print.Library if (val == "?") { erMsg = string.Format("Referenced Object does not exist."); - _MyLog.WarnFormat("Missing Referenced Object {0} in {1}", subs[1], itemInfo.ShortPath); + _MyLog.WarnFormat("\r\nMissing Referenced Object {0} in {1}", subs[1], itemInfo.ShortPath); yoff += 2 * SixLinesPerInch; } else if (val != null && val != "?") @@ -2796,7 +2796,7 @@ namespace Volian.Print.Library ImageText = val; else { - roImage = rofst.GetROImageByFilename(vals[0]);// need code to go and get an ROImaage if it exists + roImage = rofst.GetROImageByFilename(vals[0],MyItemInfo);// need code to go and get an ROImaage if it exists if (roImage == null) erMsg = string.Format("Image {0} does not exist.", vals[0]); else