~untrusted-ci-dev-bot/ubuntu-ui-extras/ubuntu-ui-extras-ubuntu-xenial-13

« back to all changes in this revision

Viewing changes to modules/Ubuntu/Components/Extras/plugin/components.cpp

  • Committer: CI Train Bot
  • Author(s): Florian Boucault
  • Date: 2016-02-25 15:11:45 UTC
  • mfrom: (72.3.2 fix_exif_orientation)
  • Revision ID: ci-train-bot@canonical.com-20160225151145-j1t0b81mkti6s66j
When rotating pictures during edit, write the EXIF orientation tag with the right type (unsigned short) instead of signed long.
PhotoImageProvider: change its behaviour to only rectify the EXIF orientation tag type when necessary (removes all other behaviours: caching, etc.) Fixes: #1541210
Approved by: PS Jenkins bot, Arthur Mello

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
    QQmlExtensionPlugin::initializeEngine(engine, uri);
40
40
 
41
41
    PhotoImageProvider* provider = new PhotoImageProvider();
42
 
    provider->setLogging(true);
43
42
    engine->addImageProvider(PhotoImageProvider::PROVIDER_ID,
44
43
                             provider);
45
44
}