From c179215c26461107a637d6a2c6a552edd9d8e1d2 Mon Sep 17 00:00:00 2001 From: Kathy Date: Tue, 10 Jul 2012 14:47:23 +0000 Subject: [PATCH] --- PROMS/Volian.Print.Library/vlnParagraph.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/PROMS/Volian.Print.Library/vlnParagraph.cs b/PROMS/Volian.Print.Library/vlnParagraph.cs index cddb94b6..aa564f81 100644 --- a/PROMS/Volian.Print.Library/vlnParagraph.cs +++ b/PROMS/Volian.Print.Library/vlnParagraph.cs @@ -921,9 +921,12 @@ namespace Volian.Print.Library // get the first table & see if it is borderless. If borderless, 16bit code removed a // line (yoffset) before printing it: float yoffadj = 0; - VlnFlexGrid fg = new VlnFlexGrid(1, 1); - fg.LoadGrid(itemInfo.Tables[0]); - if (fg.BorderStyle == C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.None) yoffadj = -SixLinesPerInch; + if (itemInfo.Tables[0].IsTable) + { + VlnFlexGrid fg = new VlnFlexGrid(1, 1); + fg.LoadGrid(itemInfo.Tables[0]); + if (fg.BorderStyle == C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.None) yoffadj = -SixLinesPerInch; + } if(!aerTableOrFigure && itemInfo.RNOLevel == 0) // Centered Table yoff = ChildrenBelow.Add(cb, itemInfo.Tables, XOffset, yOffRight + yoffadj, yOffRight + yoffadj, rnoLevel, maxRNO, formatInfo);