diff --git a/PROMS/fmtxml/AppendPlantSpecific.cs b/PROMS/fmtxml/AppendPlantSpecific.cs index bbf7e122..cc4b6e75 100644 --- a/PROMS/fmtxml/AppendPlantSpecific.cs +++ b/PROMS/fmtxml/AppendPlantSpecific.cs @@ -16,6 +16,12 @@ namespace fmtxml case "TP": AddTPFmt(ref fmtdata); break; + case "RGE": + case "RGESAM1": + case "RGESAM2": + case "RGESMPE": + AddRGEFmt(ref fmtdata); + break; } } @@ -27,6 +33,17 @@ namespace fmtxml // introduced to allow setting of the number of spaces before the tab. fmtdata.StepData[1].CautionOrNoteSubstepIndent = "2"; } + private void AddRGEFmt(ref FormatData fmtdata) + { + // The RGE formats had a PrintPosAdjust in 16 bit on the High, Immediate, LossocAC & continuous step + // types with a value of -1 (move back one character). However, on the printed output, it printed + // as about a 1/4 of a character. This value will be set in the 32bit format file to a -2.4 in + // these step types. + fmtdata.StepData[2].StepPrintData.PosAdjust = "-2.4"; + fmtdata.StepData[3].StepPrintData.PosAdjust = "-2.4"; + fmtdata.StepData[9].StepPrintData.PosAdjust = "-2.4"; + fmtdata.StepData[18].StepPrintData.PosAdjust = "-2.4"; + } } public partial class RtfToSvg { diff --git a/PROMS/fmtxml/FmtFileToXml.cs b/PROMS/fmtxml/FmtFileToXml.cs index 478b43b6..73407417 100644 --- a/PROMS/fmtxml/FmtFileToXml.cs +++ b/PROMS/fmtxml/FmtFileToXml.cs @@ -2226,7 +2226,7 @@ namespace fmtxml for (int i = 1; i < MAXSTEPS + 1; i++) { fmtdata.StepData[i].StepPrintData = new Print(); - fmtdata.StepData[i].StepPrintData.PosAdjust = ((Int16)(RowToPoints(brFmt.ReadInt16()))).ToString(); + fmtdata.StepData[i].StepPrintData.PosAdjust = ((Int16)(ColToPoints(brFmt.ReadInt16(), _PlantDefaultFontStyle))).ToString(); } // NOTE a default is added for boxes for the default box for tables, if