diff --git a/TBF/Data.cs b/TBF/Data.cs index ab3ecdc91..86c957b78 100644 --- a/TBF/Data.cs +++ b/TBF/Data.cs @@ -29,7 +29,7 @@ namespace TBF CompoundWMsCount = compoundWMsCount; LineSize = wmsCount / Math.Max(1, linesCount); HeatMetersCount = 0; - MaxPartNr = WMsCount / LineSize; + MaxPartNr = (LineSize != 0) ? (WMsCount / LineSize) : 1; } /// diff --git a/TBF/Properties/AssemblyInfo.cs b/TBF/Properties/AssemblyInfo.cs index 503f85ebe..89dcabbda 100644 --- a/TBF/Properties/AssemblyInfo.cs +++ b/TBF/Properties/AssemblyInfo.cs @@ -29,5 +29,5 @@ using System.Runtime.InteropServices; // Build Number // Revision // -[assembly: AssemblyVersion("3.1.1736.0")] -[assembly: AssemblyFileVersion("3.1.1736.0")] +[assembly: AssemblyVersion("3.1.1740.0")] +[assembly: AssemblyFileVersion("3.1.1740.0")]