Skip to content

Commit 457f0ee

Browse files
committed
Fixed a bug in the json_agenda data, calculating room midpoints correctly.
- Legacy-Id: 13180
1 parent 47463ea commit 457f0ee

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ietf/meeting/views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -988,8 +988,8 @@ def json_agenda(request, num=None ):
988988
roomdict['level_name'] = room.floorplan.name
989989
roomdict['level_sort'] = room.floorplan.order
990990
if room.x1 is not None:
991-
roomdict['x'] = room.x1+(room.x2/2.0)
992-
roomdict['y'] = room.y1+(room.y2/2.0)
991+
roomdict['x'] = (room.x1+room.x2)/2.0
992+
roomdict['y'] = (room.y1+room.y2)/2.0
993993
roomdict['modified'] = room.time
994994
if room.floorplan and room.floorplan.image:
995995
roomdict['map'] = room.floorplan.image.url

0 commit comments

Comments
 (0)