| 511 | } |
| 512 | |
| 513 | void MapCanvas::UpdatePredefinedColor(const wxString& lbl, const wxColor& new_color) |
| 514 | { |
| 515 | // update predefined color, if user change the color on legend pane |
| 516 | std::map<wxString, wxColour>::iterator it; |
| 517 | for (it =lbl_color_dict.begin(); it!=lbl_color_dict.end(); it++) { |
| 518 | wxString predefined_lbl = it->first; |
| 519 | if ( lbl.StartsWith(predefined_lbl)) { |
| 520 | lbl_color_dict[predefined_lbl] = new_color; |
| 521 | } |
| 522 | } |
| 523 | } |
| 524 | |
| 525 | std::vector<bool> MapCanvas::AddNeighborsToSelection(GalWeight* gal_weights, wxMemoryDC &dc) |
| 526 | { |
no outgoing calls
no test coverage detected