Changeset 3582

Show
Ignore:
Timestamp:
07/29/10 14:58:10 (6 weeks ago)
Author:
gm78
Message:

Closes #1016. The map tabs are now updated when left-clicked only in the case that the new center of the map has changed.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • FalconView/trunk/public/Applications/FalconView/TabularEditor/FVTabCtrl.cpp

    r2421 r3582  
    718718               MapEngineCOM *map_engine = map_view->get_map_engine(); 
    719719 
     720               d_geo_t prev_center; 
     721               map_engine->get_curr_map()->get_actual_center(&prev_center); 
     722 
    720723               if (map_engine->get_curr_map()->source() != map_type.source || 
    721724                  map_engine->get_curr_map()->scale() != map_type.scale || 
     
    727730                  { 
    728731                     // skip the next update since we know that the user clicked on a scale that exists 
    729                      m_bSkipUpdate = TRUE; 
     732                     // as long as the center of the map has not changed 
     733                     d_geo_t center; 
     734                     map_engine->ApplyMap(); 
     735                     map_engine->get_curr_map()->get_actual_center(&center); 
     736                     if (center.lat == prev_center.lat && center.lon == prev_center.lon) 
     737                        m_bSkipUpdate = TRUE; 
    730738 
    731739                     map_view->invalidate_view();