Fixed wrong calculation of visible_event_count

This commit is contained in:
Maximilian Giller 2019-03-24 21:42:00 +01:00
parent 319e6947b1
commit bef88f0b85

View file

@ -24,7 +24,7 @@ class EventListDesign (DesignEntity):
self.event_prefix_func = lambda x : self.__remove_leading_zero__(x.begin_datetime.strftime('%d %b')) self.event_prefix_func = lambda x : self.__remove_leading_zero__(x.begin_datetime.strftime('%d %b'))
def __finish_image__ (self): def __finish_image__ (self):
self.visible_event_count = int((self.size[1] - self.line_spacing) // (self.line_spacing + self.text_size)) self.visible_event_count = int(int(self.size[1]) // (self.line_spacing + int(self.text_size)))
self.__fill_event_matrix__() self.__fill_event_matrix__()
col_hori_alignment = [ 'right', 'left' ] col_hori_alignment = [ 'right', 'left' ]