Skip to content

Commit 0e5dfcb

Browse files
committed
Temperature iop: reload_defaults(): fix fallback daylight wb detection
(cherry picked from commit 186e567)
1 parent 78ddb59 commit 0e5dfcb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/iop/temperature.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ void reload_defaults(dt_iop_module_t *module)
519519
for(int i = 0; i < wb_preset_count; i++)
520520
{
521521
if(!strcmp(wb_preset[i].make, makermodel) && !strcmp(wb_preset[i].model, model)
522-
&& !strncasecmp(wb_preset[i].name, "daylight", 8))
522+
&& !strcasecmp(wb_preset[i].name, Daylight) && wb_preset[i].tuning == 0)
523523
{
524524
for(int k = 0; k < 3; k++) g->daylight_wb[k] = wb_preset[i].channel[k];
525525
break;

0 commit comments

Comments
 (0)