From 483a41aa32cd93f1a477d393bdbffb7752d0b009 Mon Sep 17 00:00:00 2001 From: Kathy Date: Thu, 24 May 2012 14:55:47 +0000 Subject: [PATCH] --- PROMS/fmtxml/FmtFileToXml.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/PROMS/fmtxml/FmtFileToXml.cs b/PROMS/fmtxml/FmtFileToXml.cs index 73407417..6d6f1c2e 100644 --- a/PROMS/fmtxml/FmtFileToXml.cs +++ b/PROMS/fmtxml/FmtFileToXml.cs @@ -718,7 +718,7 @@ public struct StepSectionLayout public Int16 HLSWidthOVRD; public Int16 SubPaginationWght; public Int16 TextTitleAdjustment; - public string TableCenterPos; // string array with ints. + public string TableCenterPos; // string array with floats. public string LowerLimitDivisor; // pagination - should it be in print? - 16bit: quoted float public string NonLinkedStepNumber; public string NonLinkedCautNoteNumber; @@ -2587,9 +2587,11 @@ namespace fmtxml } fmtdata.SectData.StepSectionData.StpSectLayData.VertStyle = LoadVE_Font(); - sbyte[] tmpbyte3 = new sbyte[3]; - for (int i = 0; i < 3; i++) tmpbyte3[i] = brFmt.ReadSByte(); - tmpstr = string.Format("{0}, {1}, {2}", tmpbyte3[0], tmpbyte3[1], tmpbyte3[2]); + for (int i = 0; i < 3; i++) + { + tmpfloat[i] = ColToPoints(brFmt.ReadSByte(), _PlantDefaultFontStyle); + } + tmpstr = string.Format("{0},{1},{2}", tmpfloat[0], tmpfloat[1], tmpfloat[2]); fmtdata.SectData.StepSectionData.StpSectLayData.TableCenterPos = tmpstr; for (int i = 0; i < MAXSEQ; i++) fmtdata.SectData.StepSectionData.SequentialTabFormat[i].Index = i; LeftJustify[] lftjust = new LeftJustify[MAXSEQ];