From 32af9dcab3dc7313e4908afce151667452f33ab2 Mon Sep 17 00:00:00 2001 From: LoginovIlya Date: Wed, 6 May 2020 20:54:40 +0300 Subject: [PATCH] Skip other slices versions --- lib/psd/resources/slices.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/psd/resources/slices.rb b/lib/psd/resources/slices.rb index 1f34162..205a570 100644 --- a/lib/psd/resources/slices.rb +++ b/lib/psd/resources/slices.rb @@ -17,6 +17,8 @@ def parse when 7, 8 then descriptor_version = @file.read_int @data = Descriptor.new(@file).parse + else + return end normalize_data!