Skip to content

Commit 8f16b46

Browse files
committed
Merge branch 'hotfix/stop-double-addition'
2 parents a774d16 + 00ce592 commit 8f16b46

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/plugin/Profiles.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,11 @@ local function doprofilechange(newprofile)
7979
if altparam == 'Direct' then
8080
lrvalue = LrDevelopController.getValue(param)
8181
else
82-
lrvalue = (photoval[param] or 0) + (photoval[altparam] or 0)
82+
if param == altparam then
83+
lrvalue = (photoval[param] or 0)
84+
else
85+
lrvalue = (photoval[param] or 0) + (photoval[altparam] or 0)
86+
end
8387
end
8488
if type(min) == 'number' and type(max) == 'number' and type(lrvalue) == 'number' then
8589
local midivalue = (lrvalue-min)/(max-min)

0 commit comments

Comments
 (0)