From 0d46b2506f9bc560f300d94ca778e509cd251904 Mon Sep 17 00:00:00 2001 From: John Date: Tue, 12 Nov 2013 22:08:22 +0000 Subject: [PATCH] Adjust line position when printing a figure in a step editor section. --- PROMS/Volian.Print.Library/vlnParagraph.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PROMS/Volian.Print.Library/vlnParagraph.cs b/PROMS/Volian.Print.Library/vlnParagraph.cs index b9aa2639..39ccb389 100644 --- a/PROMS/Volian.Print.Library/vlnParagraph.cs +++ b/PROMS/Volian.Print.Library/vlnParagraph.cs @@ -1506,8 +1506,7 @@ namespace Volian.Print.Library yForCheckoff += Height - SixLinesPerInch; // place checkoff on last row of text yoff += (Height + yoffForBorder); //(2 * SixLinesPerInch)); CalculateXOffsetGridOrFigure(itemInfo, maxRNO, formatInfo); - bool noborder = MyItemInfo.FormatStepData.Type.ToUpper().Contains("BORDERLESS"); - yoff += (Height + ((noborder ? 1 : 2) * SixLinesPerInch)); // RHM 20120925 - Eliminate extra space after Figure } + yoff = (float)Math.Ceiling(yoff); } else if (itemInfo.IsFigure) // if a figure we've got to determine the size: { @@ -1541,7 +1540,8 @@ namespace Volian.Print.Library //yForCheckoff = yoff + Height - SixLinesPerInch; if (dropCheckoff) yForCheckoff += Height - SixLinesPerInch; // place checkoff on last row of text - yoff += (Height + (SixLinesPerInch)); // RHM 20120925 - Eliminate extra space after Figure + bool noborder = MyItemInfo.FormatStepData.Type.ToUpper().Contains("BORDERLESS"); + yoff += (Height + ((noborder ? 1 : 2) * SixLinesPerInch)); // RHM 20120925 - Eliminate extra space after Figure } try {