Skip to content

Commit

Permalink
update fix of #1775 on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
lixun910 committed Dec 7, 2018
1 parent 000e7ec commit eb1e51c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Explore/ConditionalMapView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,12 @@ void ConditionalMapCanvas::DisplayRightClickMenu(const wxPoint& pos)
AppendCustomCategories(optMenu, project->GetCatClassifManager());
SetCheckMarks(optMenu);

if (var_info[VERT_VAR].is_hide) {
if (var_info[VERT_VAR].is_hide == true) {
wxMenuItem* m = optMenu->FindItem(XRCID("ID_CAT_CLASSIF_B_MENU"));
wxMenu* smi = m->GetSubMenu();
GeneralWxUtils::EnableMenuRecursive(smi, false);
}
if (var_info[HOR_VAR].is_hide) {
if (var_info[HOR_VAR].is_hide == true) {
wxMenuItem* m = optMenu->FindItem(XRCID("ID_CAT_CLASSIF_C_MENU"));
wxMenu* smi = m->GetSubMenu();
GeneralWxUtils::EnableMenuRecursive(smi, false);
Expand Down
4 changes: 2 additions & 2 deletions Explore/ConditionalNewView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,9 @@ full_map_redraw_needed(true)
}

// case that user only need horizontal axe
if (var_info[VERT_VAR].is_hide) {
if (var_info[VERT_VAR].is_hide == true) {
SetCatType(VERT_VAR, CatClassification::no_theme, 1);
} else if (var_info[HOR_VAR].is_hide) {
} else if (var_info[HOR_VAR].is_hide == true) {
SetCatType(HOR_VAR, CatClassification::no_theme, 1);
}

Expand Down

0 comments on commit eb1e51c

Please sign in to comment.