Fixed logic when ParaBreak is null
Fixed logic when PDF is open
This commit is contained in:
		| @@ -949,7 +949,7 @@ namespace Volian.Print.Library | ||||
| 					} | ||||
| 				} | ||||
| 			} | ||||
| 			if (paraBreak.PageBreakReason == null) | ||||
| 			if (paraBreak != null && paraBreak.PageBreakReason == null) | ||||
| 				paraBreak.PageBreakReason = "Rest of Step fits at 6 LPI"; | ||||
| 			ProfileTimer.Pop(profileDepth); | ||||
| 		} | ||||
|   | ||||
| @@ -440,12 +440,12 @@ namespace Volian.Print.Library | ||||
| 			// Setup a pdf Document for printing | ||||
| 			OnStatusChanged("Before OpenDoc", PromsPrinterStatusType.Before); | ||||
| 			PdfContentByte cb = OpenDoc(outputFileName); | ||||
| 			SetupProperties(cb.PdfDocument, myProcedure); | ||||
| 			if (cb == null) | ||||
| 			{ | ||||
| 				ProfileTimer.Pop(profileDepth); | ||||
| 				return null; | ||||
| 			} | ||||
| 				SetupProperties(cb.PdfDocument, myProcedure); | ||||
| 			OnStatusChanged("Before NewPage", PromsPrinterStatusType.Before); | ||||
| 			cb.PdfDocument.NewPage();	// Start of print | ||||
| 			//_MyLog.InfoFormat("NewPage 1 {0}", cb.PdfWriter.CurrentPageNumber); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Rich
					Rich