B2017-112: Figures in Supplemental Information pages overlap text if text font is shrunk

This commit is contained in:
Kathy Ruffing 2017-06-08 15:49:14 +00:00
parent 2723d5d6a7
commit 83d746edfd

View File

@ -1845,6 +1845,9 @@ namespace Volian.Print.Library
{
float hBefore = pg.Height;// Save initial paragraph height
AdjustSupInfoTable(pg, scaler,cb);
// B2017-112: Don't do the font size change if images.
if (pg.ImageText == null)
{
NewSupInfoFixChunks(pg, scaler);// Apply multiplier to font size
pg.IParagraph.Leading = scaler * pg.IParagraph.Leading; // Adjust leading (line spacing)
float hAfter = pg.GetParagraphHeight(cb, pg.IParagraph, "", pg.Width); // Calculate new paragraph height
@ -1861,6 +1864,7 @@ namespace Volian.Print.Library
float yoBefore = pg.YOffset;// Save the offset before
float yoAfter = pg.YOffset = NewSupInfoFixOffset(pg, scaler);// Calculate the offset after
pg.YBottomMost += yoAfter - yoBefore;// Adjust YbottomMost for changes to yOffset
}
foreach (vlnParagraph cpg in pg.ChildrenAbove)// Process Children Above
ReduceSupInfoGroupFontSize(cpg, scaler, cb);
foreach (vlnParagraph cpg in pg.ChildrenBelow)// Process Children Below