Skip to content
Snippets Groups Projects
Commit 91d5b717dc25 authored by Cédric Krier's avatar Cédric Krier :atom:
Browse files

Ensure to use integer for time computation after drag and drop

bug28
parent 1ca78ffe6068
No related branches found
No related tags found
No related merge requests found
...@@ -836,8 +836,7 @@ ...@@ -836,8 +836,7 @@
cur_level = 0 cur_level = 0
event_item.y = self._timeline.y + cur_level * level_height event_item.y = self._timeline.y + cur_level * level_height
nb_minutes = cur_level * self.MIN_PER_LEVEL nb_minutes = cur_level * self.MIN_PER_LEVEL
minutes = nb_minutes % 60 hours, minutes = map(int, divmod(nb_minutes, 60))
hours = nb_minutes / 60
old_start = event_item.event.start old_start = event_item.event.start
new_start = \ new_start = \
datetime.datetime.combine(self._drag_start_date, datetime.datetime.combine(self._drag_start_date,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment