Changeset 8329 for branches

Show
Ignore:
Timestamp:
18/01/12 16:55:09 (4 months ago)
Author:
westram
Message:
  • only call get_upper_lower_cursor_pos with screen coordinates when cursor is in top-area
    • needed because detection stopped working for screen coordinates when moving cursor downwards (due to changed screen-coordinate handling introduced by [8236])
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/e4fix/EDIT4/ED4_cursor.cxx

    r8296 r8329  
    11501150                bool isScreen = false; 
    11511151                if (dir == ED4_C_DOWN) { 
    1152                     window()->world_to_win_coords(&x_dummy, &y_world); // special handling to move cursor from top to bottom area 
    1153                     isScreen = true; 
     1152                    if (owner_of_cursor->get_area_level(NULL) == ED4_A_TOP_AREA) { 
     1153                        window()->world_to_win_coords(&x_dummy, &y_world); // special handling to move cursor from top to bottom area 
     1154                        isScreen = true; 
     1155                    } 
    11541156                } 
    11551157                target_terminal = get_upper_lower_cursor_pos(ED4_ROOT->main_manager, dir, y_world, isScreen, 0, seq_pos);