[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [digikam] libs/dimg/filters/redeye: fix CR #1369582
From:       Gilles Caulier <caulier.gilles () gmail ! com>
Date:       2016-09-11 21:43:58
Message-ID: E1bjCXe-0000l5-B9 () code ! kde ! org
[Download RAW message or body]

Git commit d8add26128a6e062ddcdebbb60de9f36ff61e7ba by Gilles Caulier.
Committed on 11/09/2016 at 21:43.
Pushed by cgilles into branch 'master'.

fix CR #1369582

M  +1    -4    libs/dimg/filters/redeye/redeyecorrectionfilter.cpp

http://commits.kde.org/digikam/d8add26128a6e062ddcdebbb60de9f36ff61e7ba

diff --git a/libs/dimg/filters/redeye/redeyecorrectionfilter.cpp \
b/libs/dimg/filters/redeye/redeyecorrectionfilter.cpp index 0e32623..024aaf9 100644
--- a/libs/dimg/filters/redeye/redeyecorrectionfilter.cpp
+++ b/libs/dimg/filters/redeye/redeyecorrectionfilter.cpp
@@ -168,7 +168,6 @@ cv::Mat RedEyeCorrectionFilter::QImageToCvMat(const QImage& \
inImage, bool inClon  
 void RedEyeCorrectionFilter::filterImage()
 {
-
     if (d->sp == 0)
     {
         // Loading the shape predictor model
@@ -179,9 +178,7 @@ void RedEyeCorrectionFilter::filterImage()
                                                         \
                QStandardPaths::LocateDirectory);
         QFile model(*path.begin() + QLatin1String("/shapepredictor.dat"));
 
-        model.open(QIODevice::ReadOnly);
-
-        if (model.isOpen())
+        if (model.open(QIODevice::ReadOnly))
         {
             QDataStream dataStream(&model);
             dataStream.setFloatingPointPrecision(QDataStream::SinglePrecision);


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic