1. Mikhail Korobov
  2. psd-tools

Commits

lpetre  committed cb80bfd

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

  • Participants
  • Parent commits 01e55f1
  • Branches default

Comments (0)

Files changed (1)

File src/psd_tools/decoder/actions.py

View file
     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)