lib/psd/node_layer.rb in psd-1.4.5 vs lib/psd/node_layer.rb in psd-1.5.0

- old
+ new

@@ -50,9 +50,13 @@ translate(-100000, -10000) @hidden_by_kelly = false end end + def empty? + width == 0 || height == 0 + end + # Exports this layer to a Hash. def to_hash super.merge({ type: :layer, text: @layer.text, \ No newline at end of file