Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion gimpIOBase.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,10 @@ def _propertyDecode_(self,propertyType,data):
elif propertyType==self.PROP_VECTORS:
self._vectorsDecode_(data)
elif propertyType==self.PROP_TEXT_LAYER_FLAGS:
self.textLayerFlags=int(data)
if isinstance(data, bytes):
self.textLayerFlags=int.from_bytes(data, byteorder='big')
else:
self.textLayerFlags=int(data)
elif propertyType==self.PROP_OLD_SAMPLE_POINTS:
raise Exception("ERR: old sample points structure not supported")
elif propertyType==self.PROP_LOCK_CONTENT:
Expand Down