Changeset 8339 for branches

Show
Ignore:
Timestamp:
25/01/12 12:10:19 (4 months ago)
Author:
westram
Message:
  • display ORF terminals at cursor of MOST RECENT window
    • only a hack to make them work with contexts
    • still buggy: using 2 windows and "ORF term @ cursor" leads to AWAR deadlock
Files:
1 modified

Legend:

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

    r8337 r8339  
    370370 
    371371    int dispAtCursor = root->awar(AWAR_PV_CURSOR)->read_int(); 
    372     if (dispAtCursor) 
    373         { 
    374             // Display Only Terminals Corresponding To The Cursor Position in the multiple alignment 
    375             ED4_cursor *cursor = &current_cursor(); 
    376             if (cursor->owner_of_cursor) { 
     372    if (dispAtCursor) { 
     373        // only display terminals for species at cursor 
     374        if (ED4_ROOT->get_most_recently_used_window()) {  
     375            ED4_MostRecentWinContext context; 
     376 
     377            ED4_cursor& cursor = current_cursor(); 
     378            if (cursor.owner_of_cursor) { 
    377379                // Get The Cursor Terminal And The Corresponding Aa_Sequence Terminals And Set The Display Options 
    378                 ED4_terminal *cursorTerminal = cursor->owner_of_cursor->to_terminal(); 
     380                ED4_terminal *cursorTerminal = cursor.owner_of_cursor->to_terminal(); 
    379381                if (!cursorTerminal->parent->parent->flag.is_consensus) { 
    380382                    for (int i=0; i<PV_AA_Terminals4Species; i++) { 
     
    391393            } 
    392394        } 
     395    } 
    393396} 
    394397