diff options
author | Tomaž Vajngerl <quikee@gmail.com> | 2013-04-21 22:52:30 +0200 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2013-04-21 22:52:30 +0200 |
commit | 4cbe623af84f4a6761bf996fec82f2ea791a0769 (patch) | |
tree | 8dcf0cbf4bdd71ba69e24c2a4b211a14b75fd60a /vcl | |
parent | 98ffb94d807625f87bfd27f84958ef10d3a105dc (diff) |
Fix enum Tag and Orientation usage.
Change-Id: I50014b227b07a4b7bff7b2569ec55409f371b38e
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/filter/GraphicNativeTransform.cxx | 6 | ||||
-rw-r--r-- | vcl/source/filter/jpeg/Exif.cxx | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/vcl/source/filter/GraphicNativeTransform.cxx b/vcl/source/filter/GraphicNativeTransform.cxx index 793621be484e..7b3f64072afa 100644 --- a/vcl/source/filter/GraphicNativeTransform.cxx +++ b/vcl/source/filter/GraphicNativeTransform.cxx @@ -128,7 +128,7 @@ bool GraphicNativeTransform::rotateJPEG(sal_uInt16 aRotation) aSourceStream.Write(aLink.GetData(), aLink.GetDataSize()); aSourceStream.Seek( STREAM_SEEK_TO_BEGIN ); - Orientation aOrientation = Orientation::TOP_LEFT; + Orientation aOrientation = TOP_LEFT; Exif exif; if ( exif.read(aSourceStream) ) @@ -144,9 +144,9 @@ bool GraphicNativeTransform::rotateJPEG(sal_uInt16 aRotation) aTargetStream.Seek( STREAM_SEEK_TO_BEGIN ); // Reset orientation in exif if needed - if ( exif.hasExif() && aOrientation != Orientation::TOP_LEFT) + if ( exif.hasExif() && aOrientation != TOP_LEFT) { - exif.setOrientation(Orientation::TOP_LEFT); + exif.setOrientation(TOP_LEFT); exif.write(aTargetStream); } diff --git a/vcl/source/filter/jpeg/Exif.cxx b/vcl/source/filter/jpeg/Exif.cxx index 318e2bdec5ae..d15cc4c757e6 100644 --- a/vcl/source/filter/jpeg/Exif.cxx +++ b/vcl/source/filter/jpeg/Exif.cxx @@ -163,11 +163,11 @@ bool Exif::processIFD(sal_uInt8* pExifData, sal_uInt16 aLength, sal_uInt16 aOffs { ifd = (ExifIFD*) &pExifData[aOffset]; - if (ifd->tag == Tag::ORIENTATION) + if (ifd->tag == ORIENTATION) { if(bSetValue) { - ifd->tag = Tag::ORIENTATION; + ifd->tag = ORIENTATION; ifd->type = 3; ifd->count = 1; ifd->offset = maOrientation; |