Skip to content

Commit

Permalink
Merge branch 'hotfix/stop-double-addition'
Browse files Browse the repository at this point in the history
  • Loading branch information
rsjaffe committed Jan 12, 2022
2 parents a774d16 + 00ce592 commit 8f16b46
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/plugin/Profiles.lua
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,11 @@ local function doprofilechange(newprofile)
if altparam == 'Direct' then
lrvalue = LrDevelopController.getValue(param)
else
lrvalue = (photoval[param] or 0) + (photoval[altparam] or 0)
if param == altparam then
lrvalue = (photoval[param] or 0)
else
lrvalue = (photoval[param] or 0) + (photoval[altparam] or 0)
end
end
if type(min) == 'number' and type(max) == 'number' and type(lrvalue) == 'number' then
local midivalue = (lrvalue-min)/(max-min)
Expand Down

0 comments on commit 8f16b46

Please sign in to comment.