diff --git a/Explore/ConditionalMapView.cpp b/Explore/ConditionalMapView.cpp index a75afd03d..04b5f83b0 100644 --- a/Explore/ConditionalMapView.cpp +++ b/Explore/ConditionalMapView.cpp @@ -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); diff --git a/Explore/ConditionalNewView.cpp b/Explore/ConditionalNewView.cpp index 20332bb35..c4077e8b3 100644 --- a/Explore/ConditionalNewView.cpp +++ b/Explore/ConditionalNewView.cpp @@ -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); }