From bdd27f44873b810642b03423ee8123717c3fef2f Mon Sep 17 00:00:00 2001 From: John Date: Mon, 9 Jan 2012 17:52:27 +0000 Subject: [PATCH] =?UTF-8?q?Fixed=20a=20bug=20with=20printing=20long=20proc?= =?UTF-8?q?edure=20titles=20where=20there=20wasn=E2=80=99t=20enough=20spac?= =?UTF-8?q?e=20between=20the=20split=20title=20lines.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PROMS/Volian.Print.Library/VlnSvgPageHelper.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PROMS/Volian.Print.Library/VlnSvgPageHelper.cs b/PROMS/Volian.Print.Library/VlnSvgPageHelper.cs index 14ab8171..20408c1f 100644 --- a/PROMS/Volian.Print.Library/VlnSvgPageHelper.cs +++ b/PROMS/Volian.Print.Library/VlnSvgPageHelper.cs @@ -753,7 +753,7 @@ namespace Volian.Print.Library //private void SplitTitle(SvgGroup svgGroup, VEPROMS.CSLA.Library.PageItem pageItem, string title, int? len, string match) { if (match == "{PROCTITLE2}") return plstr; - if (len == 0 || ItemInfo.StripRtfFormatting(title).Length < len) + if (len == null || len == 0 || ItemInfo.StripRtfFormatting(title).Length < len) { if (match == "{PROCTITLE2}") return plstr; // this would have been done in proctitle1 plstr = plstr.Replace(match, title); @@ -771,7 +771,7 @@ namespace Volian.Print.Library foreach (string line in titleLines) { cnt++; - if (cnt == 1) + if (cnt == 1 && adj == 0) // adj == 0 means we use PROCTITLE1/PROCTITLE2 pagelist tokens plstr = plstr.Replace(match, line); else svgGroup.Add(PageItemToSvgText(pageItem, line, yOffset));