Changeset 3582
- Timestamp:
- 07/29/10 14:58:10 (6 weeks ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
FalconView/trunk/public/Applications/FalconView/TabularEditor/FVTabCtrl.cpp
r2421 r3582 718 718 MapEngineCOM *map_engine = map_view->get_map_engine(); 719 719 720 d_geo_t prev_center; 721 map_engine->get_curr_map()->get_actual_center(&prev_center); 722 720 723 if (map_engine->get_curr_map()->source() != map_type.source || 721 724 map_engine->get_curr_map()->scale() != map_type.scale || … … 727 730 { 728 731 // 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(¢er); 736 if (center.lat == prev_center.lat && center.lon == prev_center.lon) 737 m_bSkipUpdate = TRUE; 730 738 731 739 map_view->invalidate_view();
