Web · Wiki · Activities · Blog · Lists · Chat · Meeting · Bugs · Git · Translate · Archive · People · Donate

Commit de41bbd42ff2f45f2be9c17991e1e018ec05abd7

Don't choke on devices with empty option groups

Some devices supported by SANE (e.g. webcams) may have no active
options in one of the option groups (e.g. geometry in the case of
webcams).
scan.py
(1 / 1)
  
162162 # http://mail.gnome.org/archives/gtkmm-list/2011-September/msg00112.html
163163 tool_groups_height = 0
164164 for tool_group in self:
165 max_height = reduce(max, [tool_item.size_request()[1] for tool_item in tool_group])
165 max_height = reduce(max, [tool_item.size_request()[1] for tool_item in tool_group], 0)
166166 header_height = tool_group.size_request()[1]
167167 tool_groups_height += max_height + header_height
168168