B2023-040: WCN – And sub-steps pagination
This commit is contained in:
@@ -4181,13 +4181,18 @@ namespace Volian.Print.Library
|
||||
Height = ic.Image_Height;
|
||||
|
||||
// B2022-041: extra whitespace after resized image. Make same adjustment here that gets made in ParagrphToPdf
|
||||
float mult = 1.0F;
|
||||
if (Width > (vlnParagraph.wMax - 12)) mult = (vlnParagraph.wMax - 24) / Width;
|
||||
if (Height > (vlnParagraph.hMax - 36)) mult = Math.Min(mult, (vlnParagraph.hMax - 36) / Height);
|
||||
if (mult < 1.0F)
|
||||
// B2023-040: WCN pagination changed for And steps with large image after - add format flag for
|
||||
// Barakah
|
||||
if (MyItemInfo.ActiveFormat.PlantFormat.FormatData.PrintData.AdjustLargeImage)
|
||||
{
|
||||
Width = Width * mult;
|
||||
Height = Height * mult;
|
||||
float mult = 1.0F;
|
||||
if (Width > (vlnParagraph.wMax - 12)) mult = (vlnParagraph.wMax - 24) / Width;
|
||||
if (Height > (vlnParagraph.hMax - 36)) mult = Math.Min(mult, (vlnParagraph.hMax - 36) / Height);
|
||||
if (mult < 1.0F)
|
||||
{
|
||||
Width = Width * mult;
|
||||
Height = Height * mult;
|
||||
}
|
||||
}
|
||||
}
|
||||
yoff = AdjustLocIfLongerRNO(itemInfo, yoff, yoffRightParent);
|
||||
|
Reference in New Issue
Block a user