output.FileWriter.Enhanced copes with WaterMeters.Count==0, etc.

This commit is contained in:
Milan Hanajik
2017-04-24 12:21:12 +02:00
parent eafcf016f3
commit 43fd99cea6
3 changed files with 9 additions and 6 deletions
@@ -58,7 +58,7 @@ namespace TBF.BenchControl.ResultsPrinters.LabelPrinter
DefaultPageSettings.Landscape = (pageOrientation == PageOrientation.Landscape);
if (batch.WaterMeters[0].Compound())
if (batch.WaterMeters.Count > 0 && batch.WaterMeters[0].Compound())
{
rsltItems = Results.ItemSpec.FromStrArray(Program.LocalSettings.RsltItems_Printer_CombinedWM);
}