[Digikam-devel] [digikam] [Bug 359658] New: Compilation of preprocesstask.cpp fails if QT_NO_CAST_FROM_ASCII is defined

via KDE Bugzilla bugzilla_noreply at kde.org
Mon Feb 22 01:37:50 GMT 2016


https://bugs.kde.org/show_bug.cgi?id=359658

            Bug ID: 359658
           Summary: Compilation of preprocesstask.cpp fails if
                    QT_NO_CAST_FROM_ASCII is defined
           Product: digikam
           Version: 5.0.0
          Platform: Gentoo Packages
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: Panorama
          Assignee: digikam-devel at kde.org
          Reporter: thisco at webcake.de

Found this problem today while trying to compile the digikam-9999 ebuild (git
master) on my Gentoo system. Apparently, QT_NO_CAST_FROM_ASCII is defined on my
side, causing the QString(const * char) c'tor to be private. As a consequence I
was not able to compile preprocesstask.cpp without modifying it, such that
QImg::save(const QString&, FORMAT, DImgLoaderObserver* const) gets called in
PreProcessTask::computePreview(const QUrl& inUrl) instead. The patch is
included in the "Additional Information" section.

Reproducible: Always




diff --git a/utilities/assistants/panorama/tasks/preprocesstask.cpp
b/utilities/assistants/panorama/tasks/preprocesstask.cpp
index 8efc607..49f9972 100644
--- a/utilities/assistants/panorama/tasks/preprocesstask.cpp
+++ b/utilities/assistants/panorama/tasks/preprocesstask.cpp
@@ -133,7 +133,7 @@ bool PreProcessTask::computePreview(const QUrl& inUrl)
     if (img.load(inUrl.toLocalFile()))
     {
         DImg preview = img.smoothScale(1280, 1024, Qt::KeepAspectRatio);
-        bool saved   = preview.save(outUrl.toLocalFile(), "JPG");
+       bool saved   = preview.save(outUrl.toLocalFile(),
Digikam::DImg::FORMAT::JPEG);

         // save exif information also to preview image for auto rotation
         if (saved)

-- 
You are receiving this mail because:
You are the assignee for the bug.



More information about the Digikam-devel mailing list