Skip over items that have 0 length

This commit is contained in:
aj
2018-05-31 17:14:24 -04:00
parent 4ac806d491
commit 3fd5f336f0
+3 -5
View File
@@ -1,15 +1,10 @@
using Newtonsoft.Json; using Newtonsoft.Json;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Data; using System.Data;
using System.Diagnostics; using System.Diagnostics;
using System.Drawing;
using System.IO; using System.IO;
using System.Linq; using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
namespace CutToLength namespace CutToLength
@@ -100,6 +95,9 @@ namespace CutToLength
foreach (var item in items) foreach (var item in items)
{ {
if (item.Length == 0)
continue;
for (int i = 0; i < item.Quantity; i++) for (int i = 0; i < item.Quantity; i++)
{ {
items2.Add(new BinItem items2.Add(new BinItem