Commits

lpetre committed cb80bfd

The unit key for unit floats is 4 characters, not an integer

Comments (0)

Files changed (1)

src/psd_tools/decoder/actions.py

     return Property(name, classID, keyID)
 
 def decode_unit_float(key, fp):
-    unit_key = read_fmt("I", fp)
+    unit_key = fp.read(4)
 
     if UnitFloatType.is_known(unit_key):
         value = read_fmt("d", fp)