Changed pagination logic for Cautions and Notes on substeps
Removed code to remove last character when printing in compare mode. This was originally done because of differences with the way 16 Bit VE-PROMS did word wrapping to aid in comparision printing.
This commit is contained in:
@@ -122,15 +122,15 @@ namespace Volian.Print.Library
|
||||
if (myParagraph != null)
|
||||
{
|
||||
//if (myParagraph.MyItemInfo.FormatStepData != null && myParagraph.MyItemInfo.FormatStepData.Font.Family == "Prestige Elite Tall")
|
||||
if (!myParagraph.MyItemInfo.ActiveFormat.PlantFormat.FormatData.SectData.StepSectionData.WrapSameAsEdit)
|
||||
{
|
||||
Chunk chk = RemoveLastCharacter(iParagraph);
|
||||
float heightAllButOne = GetHeight(cb, iParagraph, width, throwException);
|
||||
if (heightAll != heightAllButOne)
|
||||
return heightAllButOne;
|
||||
if (chk != null)
|
||||
RestoreLastCharacter(iParagraph, chk);
|
||||
}
|
||||
//if (!myParagraph.MyItemInfo.ActiveFormat.PlantFormat.FormatData.SectData.StepSectionData.WrapSameAsEdit)
|
||||
//{
|
||||
// Chunk chk = RemoveLastCharacter(iParagraph);
|
||||
// float heightAllButOne = GetHeight(cb, iParagraph, width, throwException);
|
||||
// if (heightAll != heightAllButOne)
|
||||
// return heightAllButOne;
|
||||
// if (chk != null)
|
||||
// RestoreLastCharacter(iParagraph, chk);
|
||||
//}
|
||||
}
|
||||
}
|
||||
return heightAll;
|
||||
|
Reference in New Issue
Block a user