B2012-368 fixed problem to newly entered not being saved when checkoff type is changed

B2012-357  fixed problem of not being able to insert a new substep if you first deleted an equipment list substep
B2012-367  Fixed problem of Note type that uses the Indent token not printing the note
This commit is contained in:
2012-12-13 22:57:50 +00:00
parent fba56b1f55
commit 6eb479b8fa
3 changed files with 13 additions and 2 deletions

View File

@@ -314,6 +314,9 @@ namespace Volian.Print.Library
// create a chunk with that symbol. Then loop through all of the chunks until we find
// this symbol, adding up the widths to that point. This width is the value that
// needs to be used to set the indent.
// Notes:
// A hard return will reset the chkW (indent width) back to zero.
// We jump out of the processing loop after the first indent token is found and ignor any other ones
IRtfDocument rtfDoc2 = RtfInterpreterTool.BuildDoc(rtf.Replace("\x05", @"\f1 \u9999? \f0 "));
Rtf2iTextSharp rtf2IText2 = new Rtf2iTextSharp(rtfDoc2);
iTextSharp.text.Paragraph para2 = rtf2IText2.Convert();
@@ -321,6 +324,7 @@ namespace Volian.Print.Library
foreach (Chunk chk in para2.Chunks)
{
if (chk.Content[0] == 9999) break;
if (chk.Content.Contains("\n")) chkW = 0; //hard return - reset chkW (indent start)
chkW += chk.GetWidthPoint();
}
para.IndentationLeft = chkW;