From 1ca7408701cdf713bb2c8a2ad919161055bb367b Mon Sep 17 00:00:00 2001 From: Dick Hollenbeck Date: Mon, 6 Feb 2012 09:31:36 -0600 Subject: [PATCH] typos --- CHANGELOG.txt | 4 ++-- pcbnew/class_board.cpp | 1 - pcbnew/class_board_design_settings.cpp | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 5bbb51bf58..c07e97f79f 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -21,12 +21,12 @@ email address. * Removed dialog_copper_zones.h since DIALOG class is now declared in *.cpp. * Renamed to enum ZONE_EDIT_T in zones.h * SetVisibleAlls() is not called as it was in two previous cases for several - reasons. BOARD_DESIGN_SETTINGS constructor controls what is visible initially. + reasons. BOARD_DESIGN_SETTINGS constructor controls what is visible initially, and in the near future so will the *.brd file. I believe the user should have visibility setting rentention accross editing sessions of zones, fields, etc. * BOARD_DESIGN_SETTINGS constructor initializes hidden text as not visible. - * Added PCB_EDIT_FRAME::SyncRenderStates() and PCB_LAYER_WIDGET::syncRenderStates() + * Added PCB_EDIT_FRAME::syncRenderStates() and PCB_LAYER_WIDGET::SyncRenderStates() so the checkboxes can be set after loading a BOARD file containing previous visibility settings. diff --git a/pcbnew/class_board.cpp b/pcbnew/class_board.cpp index a2789663ce..56f211e4d1 100644 --- a/pcbnew/class_board.cpp +++ b/pcbnew/class_board.cpp @@ -532,7 +532,6 @@ void BOARD::SetVisibleElements( int aMask ) } -// these are not tidy, since there are PCB_VISIBLEs that are not stored in the bitmap. void BOARD::SetVisibleAlls() { SetVisibleLayers( FULL_LAYERS ); diff --git a/pcbnew/class_board_design_settings.cpp b/pcbnew/class_board_design_settings.cpp index f05e5dab3d..09ea1b434a 100644 --- a/pcbnew/class_board_design_settings.cpp +++ b/pcbnew/class_board_design_settings.cpp @@ -21,7 +21,7 @@ BOARD_DESIGN_SETTINGS::BOARD_DESIGN_SETTINGS() SetVisibleLayers( FULL_LAYERS ); // set all but hidden text as visible. - m_VisibleElements = -1 & ~( 1 << MOD_TEXT_INVISIBLE ); + m_VisibleElements = ~( 1 << MOD_TEXT_INVISIBLE ); SetCopperLayerCount( 2 ); // Default design is a double sided board