Skip to content
This repository has been archived by the owner on Oct 4, 2020. It is now read-only.

Commit

Permalink
Make sure we set the default auto_brightness value
Browse files Browse the repository at this point in the history
  • Loading branch information
SamWhited committed Jun 27, 2015
1 parent db16481 commit 8a3f957
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rawkit/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,10 @@ def auto_brightness(self):

@auto_brightness.param_writer
def auto_brightness(self, params):
params.no_auto_bright = ctypes.c_int(not self._auto_brightness)
if self._auto_brightness is None:
params.no_auto_bright = ctypes.c_int(False)
else:
params.no_auto_bright = ctypes.c_int(not self._auto_brightness)

@option(param='use_fuji_rotate', ctype=ctypes.c_int)
def auto_stretch(self):
Expand Down

0 comments on commit 8a3f957

Please sign in to comment.