From 3ae6a1a964ab3254d3915da69e670b5e718ce4db Mon Sep 17 00:00:00 2001 From: LoginovIlya Date: Fri, 8 Jan 2021 18:08:43 +0300 Subject: [PATCH] Changed guides location to float as PS --- lib/psd/resources/guides.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/psd/resources/guides.rb b/lib/psd/resources/guides.rb index 9ae7f9e..01e5835 100644 --- a/lib/psd/resources/guides.rb +++ b/lib/psd/resources/guides.rb @@ -19,7 +19,7 @@ def parse @data = [] num_guides.times do - location = @file.read_int / 32 + location = (@file.read_int / 32.0).ceil(1) direction = @file.read_byte == 0 ? "vertical" : "horizontal" @data.push({ :location => location, :direction => direction })