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

            Bug ID: 527849
           Summary: [typo] kis_four_point_interpolator uses xBasedMu
                    instead of yBasedMu
    Classification: Applications
           Product: krita
      Version First git master (please specify the git hash!)
       Reported In:
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: General
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

DESCRIPTION
libs/image/kis_four_point_interpolator_backward.h, line 160 seems to have a
typo.
It uses xBasedMu instead of yBasedMu for calculating yMu2.


       if (!dontCheckOtherNu) {
            nu2 = (-qB + sqrtD) * m_qD_div;

            xDenomNu2 = xBasedDenom(nu2);
            xMu2 = xBasedMu(nu2, xDenomNu2);

            bool goodNu2 = inGoodRange(nu2);

            if (goodNu2 && inGoodRange(xMu2)) {
                return getResult(nu2, xMu2);
            }

            yDenomNu2 = yBasedDenom(nu2);
>>here>>            yMu2 = xBasedMu(nu2, yDenomNu2); <<<<

            if (goodNu2 && inGoodRange(yMu2)) {
                return getResult(nu2, yMu2);
            }
        }

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to