B2019-093 – moved the table cell text up a little bit so that it fits better in the table. For South Texas, was causing some cell text not to print (FSG20 step 1)

This commit is contained in:
John Jenko 2019-07-16 17:11:23 +00:00
parent 36259e7f28
commit b45332c5ba

View File

@ -1364,7 +1364,10 @@ namespace Volian.Print.Library
adjustTextLocation = mult * 0;
if (mult != 1F) adjustTextLocation=1;
}
myColumnText1.SetSimpleColumn(1 + left + x, top - y - h, left + x + w - 2, 1 + top - y - hAdjust - adjustTextLocation); // 2 == Default Padding
// B2019-093 missing table cell text when printing South Texas FSG-20 step 1
// Added two more to the last parameter of SetSimplColun (it's the ury value - upper y value)
// this will have the cell text print a little more toward the top of the cell
myColumnText1.SetSimpleColumn(1 + left + x, top - y - h, left + x + w - 2, 3 + top - y - hAdjust - adjustTextLocation); // 2 == Default Padding
// B2018-003 - RHM 20180319 Change Debug Output
string dbg = string.Format("Row={0}, Col={1}, Leading={2}, SpacingBefore={3}", r1, c1, MyPara.TotalLeading, MyPara.SpacingBefore);
// B2018-033 VCS SAG-6 Steps 3 and 9 and SACRG1 Step 13
@ -1379,7 +1382,7 @@ namespace Volian.Print.Library
_MyPageHelper.YMultiplier, ShowText(MyPara.Content.Substring(0, Math.Min(20, MyPara.Content.Length))));
}
// C2018-004 create meta file for baseline compares
Volian.Base.Library.BaselineMetaFile.WriteLine(" R {0} C {1} Y {2} H {3} Top {4} hAdj {5} TxtLocAdj {6}", r1, c1, y, h, top, hAdjust,adjustTextLocation);
Volian.Base.Library.BaselineMetaFile.WriteLine(" R {0} C {1} Y {2} H {3} Top {4} hAdj {5} TxtLocAdj {6}", r1, c1, y, h, 2+top, hAdjust,adjustTextLocation);
foreach (Chunk chk1 in MyPara.Chunks)
{
string ctai = Rtf2Pdf.ChunkTextAttributesInfo(chk1);