From ddd973c83ff249c0327bbf44b007bdc1109fe2d5 Mon Sep 17 00:00:00 2001 From: Rich Date: Wed, 19 Feb 2014 21:31:39 +0000 Subject: [PATCH] Revert to previous --- PROMS/Volian.Print.Library/vlnParagraph.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/PROMS/Volian.Print.Library/vlnParagraph.cs b/PROMS/Volian.Print.Library/vlnParagraph.cs index 8e018550..c4b4f767 100644 --- a/PROMS/Volian.Print.Library/vlnParagraph.cs +++ b/PROMS/Volian.Print.Library/vlnParagraph.cs @@ -1687,9 +1687,9 @@ namespace Volian.Print.Library bool dropCheckoff = itemInfo.ActiveFormat.PlantFormat.FormatData.ProcData.CheckOffData.DropCheckOff; if (itemInfo.MyContent.MyGrid != null) { - VlnFlexGrid myFlexGrid = new VlnFlexGrid(1, 1); - myFlexGrid.LoadGrid(itemInfo); - MyGrid = new vlnTable(myFlexGrid, cb); + //Use Static MyFlexGrid - BWD INST2 - FlexGrid Errors + MyFlexGrid.LoadGrid(itemInfo); + MyGrid = new vlnTable(MyFlexGrid, cb); Height = MyGrid.Height; Width = MyGrid.Width; @@ -1708,7 +1708,7 @@ namespace Volian.Print.Library // if the table does not have a border, only move down one line: float yoffForBorder = 2 * SixLinesPerInch; - if (myFlexGrid.BorderStyle == C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.None && !myFlexGrid.TopRowHasBorder()) + if (MyFlexGrid.BorderStyle == C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.None && !MyFlexGrid.TopRowHasBorder()) yoffForBorder -= SixLinesPerInch; //yForCheckoff = yoff + Height - SixLinesPerInch; @@ -1917,7 +1917,7 @@ namespace Volian.Print.Library if (MyTab != null) MyTab.YOffset = ChildrenRight[0].YOffset; if (PartsRight.Count > 0) PartsRight[0].YOffset = ChildrenRight[0].YOffset; if (ChildrenAbove.Count == 0) - YTopMost = ChildrenRight[0].ChildrenAbove[0].YOffset; + YTopMost = ChildrenRight[0].ChildrenAbove[0].YOffset; else YTopMost = ChildrenAbove[0].YOffset; }