From ae68910f9707a86631dec2cd1ee6da92c88f9ce5 Mon Sep 17 00:00:00 2001 From: John Date: Mon, 3 May 2010 15:40:03 +0000 Subject: [PATCH] fixed directory path --- PROMS/fmtxml/RtfToSvg.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/PROMS/fmtxml/RtfToSvg.cs b/PROMS/fmtxml/RtfToSvg.cs index 0f1830a0..fa9377ee 100644 --- a/PROMS/fmtxml/RtfToSvg.cs +++ b/PROMS/fmtxml/RtfToSvg.cs @@ -13,10 +13,13 @@ namespace fmtxml public RtfToSvg(string rtfFileName) { RtfFileName = rtfFileName; + _FormatFolder = RtfFile.Directory; } + private static DirectoryInfo _FormatFolder; public RtfToSvg(FileInfo rtfFile) { RtfFile = rtfFile; + _FormatFolder = RtfFile.Directory; } private bool? _IsGenMac; public bool IsGenMac @@ -283,7 +286,7 @@ namespace fmtxml } private static string FixFileName(string fileName) { - return Regex.Replace(fileName, @"^.*FORMAT\\", @"E:\VE-PROMS\FORMAT\"); + return Regex.Replace(fileName, @"^.*FORMAT\\", _FormatFolder.FullName + @"\"); } private static string FixXmlText(string str) {