Changeset 8299 for branches

Show
Ignore:
Timestamp:
12/12/11 14:29:14 (6 months ago)
Author:
westram
Message:
  • when creating a 2nd window with identical ID (e.g. done for 2nd editor window, to avoid using separate GCs for separate windows), use position/size from awars
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/e4fix/WINDOW/AW_window.cxx

    r8287 r8299  
    18201820    if (height>aww->_at->max_y_size) aww->_at->max_y_size = height; 
    18211821 
     1822    bool has_user_geometry = false; 
    18221823    if (!GBS_read_hash(root->hash_for_windows, aww->get_window_id())) { 
    18231824        GBS_write_hash(root->hash_for_windows, aww->get_window_id(), (long)aww); 
    1824         bool has_user_geometry = false; 
    18251825 
    18261826        aww->create_user_geometry_awars(posx, posy, width, height); 
    1827  
     1827    } 
     1828    { 
    18281829        int user_width, user_height; aww->get_size_from_awars(user_width, user_height); 
    18291830        int user_posx,  user_posy;   aww->get_pos_from_awars(user_posx,  user_posy); 
     
    18461847        } 
    18471848    } 
    1848  
     1849     
    18491850    if (allow_resize) { 
    18501851        // create the window big enough to ensure that all widgets