Declared the format variable TabPtsPerChar as a “float?” so that it can have a null value

Fixed the RTF commands for the OR, AND, THEN, and WHEN replacewords
Added logic so that TabPtsPerChar is not added to a format if the value is NULL
This commit is contained in:
2014-07-15 20:29:50 +00:00
parent e6b45641cd
commit f32971b8d4
3 changed files with 5 additions and 5 deletions

View File

@@ -17,10 +17,10 @@ namespace fmtxml
// replace words
fmtdata.SectData.ReplaceStrData[0].ReplaceWith = @"\b \ul IF\ulnone \b0 ";
fmtdata.SectData.ReplaceStrData[2].ReplaceWith = @"\par}\b \ul THEN\ulnone \b0 ";
fmtdata.SectData.ReplaceStrData[2].ReplaceWith = @"{\par}\b \ul THEN\ulnone \b0 ";
fmtdata.SectData.ReplaceStrData[3].ReplaceWith = @"\b \ul WHEN\ulnone \b0 ";
fmtdata.SectData.ReplaceStrData[4].ReplaceWith = @"\par}\b \ul AND\ulnone \b0 ";
fmtdata.SectData.ReplaceStrData[5].ReplaceWith = @"\par}\b \ul OR\ulnone \b0 ";
fmtdata.SectData.ReplaceStrData[4].ReplaceWith = @"{\par}\b \ul AND\ulnone \b0 ";
fmtdata.SectData.ReplaceStrData[5].ReplaceWith = @"{\par}\b \ul OR\ulnone \b0 ";
}
private void AddWCN2Fmt(ref FormatData fmtdata)
{