fixed directory path
This commit is contained in:
parent
e81c993675
commit
ae68910f97
@ -13,10 +13,13 @@ namespace fmtxml
|
|||||||
public RtfToSvg(string rtfFileName)
|
public RtfToSvg(string rtfFileName)
|
||||||
{
|
{
|
||||||
RtfFileName = rtfFileName;
|
RtfFileName = rtfFileName;
|
||||||
|
_FormatFolder = RtfFile.Directory;
|
||||||
}
|
}
|
||||||
|
private static DirectoryInfo _FormatFolder;
|
||||||
public RtfToSvg(FileInfo rtfFile)
|
public RtfToSvg(FileInfo rtfFile)
|
||||||
{
|
{
|
||||||
RtfFile = rtfFile;
|
RtfFile = rtfFile;
|
||||||
|
_FormatFolder = RtfFile.Directory;
|
||||||
}
|
}
|
||||||
private bool? _IsGenMac;
|
private bool? _IsGenMac;
|
||||||
public bool IsGenMac
|
public bool IsGenMac
|
||||||
@ -283,7 +286,7 @@ namespace fmtxml
|
|||||||
}
|
}
|
||||||
private static string FixFileName(string fileName)
|
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)
|
private static string FixXmlText(string str)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user