From 90a9cc3ba35a67d59282c81de87e690eab06b523 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tiago=20Concei=C3=A7=C3=A3o?= Date: Sun, 22 Aug 2021 04:06:08 +0100 Subject: [PATCH] v2.19.3 - (Fix) CTB: Corrupt and unprintable file when saving (#270) --- CHANGELOG.md | 4 ++++ CREDITS.md | 4 ++-- UVtools.Core/FileFormats/ChituboxFile.cs | 6 +++++- UVtools.Core/UVtools.Core.csproj | 2 +- UVtools.WPF/UVtools.WPF.csproj | 2 +- 5 files changed, 13 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b4acdb2..a2d6492 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 22/08/2021 - v2.19.3 + +- (Fix) CTB: Corrupt and unprintable file when saving (#270) + ## 21/08/2021 - v2.19.2 - **File Formats:** diff --git a/CREDITS.md b/CREDITS.md index a4a175d..5db68cd 100644 --- a/CREDITS.md +++ b/CREDITS.md @@ -29,7 +29,6 @@ - For beta testing new features # Supporters / Contributors - - https://github.com/sponsors/sn4k3 - Ingo Strohmenger - Sven Vogt @@ -63,4 +62,5 @@ - Thomas Wilbert - Gary Kyle - Peter Csaki -- Chris Luginbuhl \ No newline at end of file +- Chris Luginbuhl +- Tim Savage \ No newline at end of file diff --git a/UVtools.Core/FileFormats/ChituboxFile.cs b/UVtools.Core/FileFormats/ChituboxFile.cs index 6194857..a277deb 100644 --- a/UVtools.Core/FileFormats/ChituboxFile.cs +++ b/UVtools.Core/FileFormats/ChituboxFile.cs @@ -623,7 +623,11 @@ namespace UVtools.Core.FileFormats Parent = parent; SetFrom(layer); - TableSize = parent.HeaderSettings.Version <= 2 ? TABLE_SIZE : LayerDefEx.TABLE_SIZE; + if (parent.HeaderSettings.Version >= 2) + { + TableSize += LayerDefEx.TABLE_SIZE; + } + } public void SetFrom(Layer layer) diff --git a/UVtools.Core/UVtools.Core.csproj b/UVtools.Core/UVtools.Core.csproj index 6a8d890..dc10994 100644 --- a/UVtools.Core/UVtools.Core.csproj +++ b/UVtools.Core/UVtools.Core.csproj @@ -10,7 +10,7 @@ https://github.com/sn4k3/UVtools https://github.com/sn4k3/UVtools MSLA/DLP, file analysis, calibration, repair, conversion and manipulation - 2.19.2 + 2.19.3 Copyright © 2020 PTRTECH UVtools.png AnyCPU;x64 diff --git a/UVtools.WPF/UVtools.WPF.csproj b/UVtools.WPF/UVtools.WPF.csproj index b2014a9..549a674 100644 --- a/UVtools.WPF/UVtools.WPF.csproj +++ b/UVtools.WPF/UVtools.WPF.csproj @@ -12,7 +12,7 @@ LICENSE https://github.com/sn4k3/UVtools Git - 2.19.2 + 2.19.3