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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user