<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>312765</bug_id>
          
          <creation_ts>2013-01-06 17:37:05 +0000</creation_ts>
          <short_desc>Crop factor is being used as scale factor [patch]</short_desc>
          <delta_ts>2016-07-01 09:22:45 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>digikam</product>
          <component>Plugin-Editor-LensCorrection</component>
          <version>2.6.0</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Roman I Khimov">rik</reporter>
          <assigned_to name="Digikam Developers">digikam-bugs-null</assigned_to>
          <cc>caulier.gilles</cc>
          
          <cf_commitlink>http://commits.kde.org/digikam/70cf9beaac9996c219f988d8ae74d75dc253c0ad</cf_commitlink>
          <cf_versionfixedin>3.0.0</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1329226</commentid>
    <comment_count>0</comment_count>
    <who name="Roman I Khimov">rik</who>
    <bug_when>2013-01-06 17:37:05 +0000</bug_when>
    <thetext>Subject says it all, patch will be added.

Reproducible: Always</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1329227</commentid>
    <comment_count>1</comment_count>
      <attachid>76255</attachid>
    <who name="Roman I Khimov">rik</who>
    <bug_when>2013-01-06 17:37:28 +0000</bug_when>
    <thetext>Created attachment 76255
Patch to fix the problem</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1329457</commentid>
    <comment_count>2</comment_count>
    <who name="">caulier.gilles</who>
    <bug_when>2013-01-07 10:41:44 +0000</bug_when>
    <thetext>Git commit 70cf9beaac9996c219f988d8ae74d75dc253c0ad by Gilles Caulier.
Committed on 07/01/2013 at 11:39.
Pushed by cgilles into branch &apos;master&apos;.

Apply patch #76255 from Roman I Khimov to don&apos;t pass crop factor as scale factor to lensfun.

Sixth parameter to Initialize() is actually a scale factor which has nothing
in common with crop factor. I think it&apos;s safe to assume that we want no
scaling from lensfun and thus use the value of one.

Ref: http://lensfun.berlios.de/manual/structlfModifier.html
Related: bug 312764, bug 253941, bug 266204, bug 267613, bug 281783, bug 284708
FIXED-IN: 3.0.0
CCMAIL: roman@khimov.ru

M  +1    -1    libs/dimg/filters/lens/lensfunfilter.cpp

http://commits.kde.org/digikam/70cf9beaac9996c219f988d8ae74d75dc253c0ad</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1329463</commentid>
    <comment_count>3</comment_count>
    <who name="">caulier.gilles</who>
    <bug_when>2013-01-07 10:46:08 +0000</bug_when>
    <thetext>Roman,

Thanks a lots for your investiguations and patches around digiKam Lensfun interface.

Gilles Caulier</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1329514</commentid>
    <comment_count>4</comment_count>
    <who name="Roman I Khimov">rik</who>
    <bug_when>2013-01-07 13:04:45 +0000</bug_when>
    <thetext>Patch applied, thanks, closing.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>76255</attachid>
            <date>2013-01-06 17:37:28 +0000</date>
            <delta_ts>2013-01-06 17:37:28 +0000</delta_ts>
            <desc>Patch to fix the problem</desc>
            <filename>0002-filters-lens-don-t-pass-crop-factor-as-scale-factor-.patch</filename>
            <type>text/plain</type>
            <size>1446</size>
            <attacher name="Roman I Kh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5jcHAKKysrIGIvbGlicy9kaW1nL2ZpbHRlcnMv
bGVucy9sZW5zZnVuZmlsdGVyLmNwcApAQCAtMTQyLDcgKzE0Miw3IEBAIHZvaWQgTGVuc0Z1bkZp
bHRlcjo6ZmlsdGVySW1hZ2UoKQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgIGQtPmlmYWNlLT5zZXR0aW5ncygpLmZvY2FsTGVuZ3RoLAogICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgIGQtPmlmYWNlLT5zZXR0aW5ncygpLmFwZXJ0dXJl
LAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGQtPmlmYWNlLT5z
ZXR0aW5ncygpLnN1YmplY3REaXN0YW5jZSwKLSAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICBkLT5pZmFjZS0+c2V0dGluZ3MoKS5jcm9wRmFjdG9yLAorICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDEuMCwgLyogbm8gc2NhbGluZyAqLwog
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIExGX1JFQ1RJTElORUFS
LAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG1vZGlmeUZsYWdz
LAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDAvKm5vIGludmVy
c2UqLyk7Ci0tIAoxLjcuMTAuNAoK
</data>

          </attachment>
      

    </bug>

</bugzilla>