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:
Rich
2014-02-06 18:38:26 +00:00
parent 9de2e84909
commit 7e67e619e8
2 changed files with 13 additions and 11 deletions

View File

@@ -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;