Goocalendar

Message82

Author ced
Recipients
Date 2020-01-02.11:54:21
Message-id <1577962461.44.0.616035807193.bug25@tryton.org>
In-reply-to
draw_events can be called when _selected_day is still None.

ERROR:tryton.common.common:  File "/home/ced/Projects/goocalendar/goocalendar/_calendar.py", line 228, in on_size_allocate
    self.update()
  File "/home/ced/Projects/goocalendar/goocalendar/_calendar.py", line 240, in update
    self.draw_events()
  File "/home/ced/Projects/goocalendar/goocalendar/_calendar.py", line 610, in draw_events
    max_y += self._selected_day.line_height

AttributeError: 'NoneType' object has no attribute 'line_height'
History
Date User Action Args
2020-01-02 11:54:21cedsetmessageid: <1577962461.44.0.616035807193.bug25@tryton.org>
2020-01-02 11:54:21cedlinkbug25 messages
2020-01-02 11:54:21cedcreate