diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-18 17:00:31 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-18 17:00:31 +0000 |
commit | 395a904bff7b4d6ead445c342f7ac0c5fbf29121 (patch) | |
tree | 9829cadb79d2cc7c29a940627fadb28b11e54150 /konq-plugins/imagerotation/orient.py | |
parent | 399f47c376fdf4d19192732a701ea9578d11619d (diff) | |
download | tdeaddons-395a904bff7b4d6ead445c342f7ac0c5fbf29121.tar.gz tdeaddons-395a904bff7b4d6ead445c342f7ac0c5fbf29121.zip |
TQt4 port kdeaddons
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1237404 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'konq-plugins/imagerotation/orient.py')
-rwxr-xr-x | konq-plugins/imagerotation/orient.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/konq-plugins/imagerotation/orient.py b/konq-plugins/imagerotation/orient.py index 0671876..8db06ad 100755 --- a/konq-plugins/imagerotation/orient.py +++ b/konq-plugins/imagerotation/orient.py @@ -42,13 +42,13 @@ if not tags: print 'no EXIF information in', filename sys.exit(1) if not tags.has_key('Exif Offset') \ - or not tags.has_key('Image Orientation'): + or not tags.has_key('Image Qt::Orientation'): print 'cannot get orientation info in', filename sys.exit(1) exifp = tags['Exif Offset'] endian = tags['Exif Endian'] -tagp = tags['Image Orientation'].field_offset +tagp = tags['Image Qt::Orientation'].field_offset orientp = exifp + tagp @@ -93,8 +93,8 @@ os.write(fd,chr(newo)) # Thumbnail orientation : thumb_ifdp = 0 -if tags.has_key('Thumbnail Orientation'): - thumb_tagp = tags['Thumbnail Orientation'].field_offset +if tags.has_key('Thumbnail Qt::Orientation'): + thumb_tagp = tags['Thumbnail Qt::Orientation'].field_offset thumb_orientp = exifp + thumb_tagp if endian == 'M': # MM byte order thumb_orientp += 1 |