From eb1e51cf93fa9057d8f29e6ed13b4945c6e29743 Mon Sep 17 00:00:00 2001 From: Xun Li Date: Thu, 6 Dec 2018 21:16:11 -0700 Subject: [PATCH] update fix of #1775 on windows --- Explore/ConditionalMapView.cpp | 4 ++-- Explore/ConditionalNewView.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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); }