Browse Source

Fixed avatar crop preservation

Rafał Pitoń 11 years ago
parent
commit
d219d52f7c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      misago/users/views/usercp.py

+ 1 - 1
misago/users/views/usercp.py

@@ -177,7 +177,7 @@ def crop_avatar(request, use_tmp_avatar):
     if not use_tmp_avatar and request.user.avatar_crop:
     if not use_tmp_avatar and request.user.avatar_crop:
         user_crop = request.user.avatar_crop.split(',')
         user_crop = request.user.avatar_crop.split(',')
         current_crop = {
         current_crop = {
-            'selection_len': user_crop[0],
+            'selection_len': user_crop[3],
             'start_x': user_crop[4],
             'start_x': user_crop[4],
             'start_y': user_crop[6],
             'start_y': user_crop[6],
         }
         }