Skip to content

Commit cd53309

Browse files
jenshannoschwalmTurboGit
authored andcommitted
Fix highlights default mode
Test & set correctly in reload_defaults()
1 parent 7782cd2 commit cd53309

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/iop/highlights.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1218,7 +1218,6 @@ void reload_defaults(dt_iop_module_t *self)
12181218
DT_IOP_HIGHLIGHTS_OPPOSED);
12191219
// As we only have clip available we remove all other options
12201220
for(int i = 0; i < 6; i++) dt_bauhaus_combobox_remove_at(g->mode, 1);
1221-
d->mode = DT_IOP_HIGHLIGHTS_CLIP;
12221221
}
12231222
else if(sraw)
12241223
{
@@ -1237,6 +1236,7 @@ void reload_defaults(dt_iop_module_t *self)
12371236
_set_quads(g, NULL);
12381237
}
12391238
d->clip = MIN(d->clip, img->linear_response_limit);
1239+
d->mode = rawprep ? DT_IOP_HIGHLIGHTS_OPPOSED : DT_IOP_HIGHLIGHTS_CLIP;
12401240
}
12411241

12421242
static void _quad_callback(GtkWidget *quad, dt_iop_module_t *self)

0 commit comments

Comments
 (0)