~ubuntu-branches/ubuntu/saucy/digikam/saucy

« back to all changes in this revision

Viewing changes to utilities/queuemanager/basetools/transform/flip.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2010-12-21 23:19:11 UTC
  • mfrom: (1.2.33 upstream) (3.1.7 experimental)
  • Revision ID: james.westby@ubuntu.com-20101221231911-z9jip7s5aht1jqn9
Tags: 2:1.7.0-1ubuntu1
* Merge from Debian Experimental. Remaining Ubuntu changes:
  - Export .pot name and copy to plugins in debian/rules
  - Version build-depends on kipi-plugins-dev to ensure build is against the
    same version on all archs
* Drop debian/patches/kubuntu_01_linker.diff, incoporated upstream
* Remove patches directory and unused patches

Show diffs side-by-side

added added

removed removed

Lines of Context:
97
97
 
98
98
    if (isJpegImage(inputUrl().toLocalFile()) && image().isNull())
99
99
    {
100
 
        switch(flip)
 
100
        switch (flip)
101
101
        {
102
102
            case DImg::HORIZONTAL:
103
103
                return (exifTransform(inputUrl().toLocalFile(), inputUrl().fileName(), outputUrl().toLocalFile(), FlipHorizontal));
106
106
                return (exifTransform(inputUrl().toLocalFile(), inputUrl().fileName(), outputUrl().toLocalFile(), FlipVertical));
107
107
                break;
108
108
            default:
109
 
                kDebug() << "Unknow flip action";
 
109
                kDebug() << "Unknown flip action";
110
110
                return false;
111
111
                break;
112
112
        }
113
113
    }
114
114
 
115
 
    if (!loadToDImg()) return false;
 
115
    if (!loadToDImg())
 
116
    {
 
117
        return false;
 
118
    }
116
119
 
117
120
    image().flip(flip);
118
121