0002309: Crash rerunning report after deleting used filter.
svn: r11020
This commit is contained in:
parent
48c1ea3a63
commit
ec1d406098
@ -355,6 +355,18 @@ class EnumeratedListOption(Option):
|
|||||||
self.__items = []
|
self.__items = []
|
||||||
self.emit('options-changed')
|
self.emit('options-changed')
|
||||||
|
|
||||||
|
def get_value(self):
|
||||||
|
"""
|
||||||
|
Get the value of this option.
|
||||||
|
|
||||||
|
@return: The option value.
|
||||||
|
"""
|
||||||
|
value = Option.get_value(self)
|
||||||
|
if value >= len(self.__items):
|
||||||
|
# Range check the value
|
||||||
|
value = 0
|
||||||
|
return value
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
# FilterOption class
|
# FilterOption class
|
||||||
|
Loading…
Reference in New Issue
Block a user