Commit 59f49797 authored by jean-pierre charras's avatar jean-pierre charras

Pcbnew, layers manager: Fix an annoying bug I added in rev 5359, in Render...

Pcbnew, layers manager: Fix an annoying bug I added in rev 5359, in Render options: in Board editor many render options were not displayed (similar fp editor mode).
Now fixed.
parent d4e04dcc
...@@ -257,7 +257,7 @@ void PCB_LAYER_WIDGET::ReFillRender() ...@@ -257,7 +257,7 @@ void PCB_LAYER_WIDGET::ReFillRender()
{ {
LAYER_WIDGET::ROW renderRow = s_render_rows[row]; LAYER_WIDGET::ROW renderRow = s_render_rows[row];
if( !isAllowedInFpMode( renderRow.id ) ) if( m_fp_editor_mode && !isAllowedInFpMode( renderRow.id ) )
continue; continue;
renderRow.tooltip = wxGetTranslation( s_render_rows[row].tooltip ); renderRow.tooltip = wxGetTranslation( s_render_rows[row].tooltip );
...@@ -284,7 +284,7 @@ void PCB_LAYER_WIDGET::SyncRenderStates() ...@@ -284,7 +284,7 @@ void PCB_LAYER_WIDGET::SyncRenderStates()
{ {
int rowId = s_render_rows[row].id; int rowId = s_render_rows[row].id;
if( !isAllowedInFpMode( rowId ) ) if( m_fp_editor_mode && !isAllowedInFpMode( rowId ) )
continue; continue;
// this does not fire a UI event // this does not fire a UI event
......
...@@ -320,16 +320,16 @@ void AddSegmentToDragList( int flag, TRACK* aTrack ) ...@@ -320,16 +320,16 @@ void AddSegmentToDragList( int flag, TRACK* aTrack )
DRAG_SEGM_PICKER wrapper( aTrack ); DRAG_SEGM_PICKER wrapper( aTrack );
if( flag & STARTPOINT ) if( flag & STARTPOINT )
wrapper.m_TempFlags |= 1; {
wrapper.m_TempFlags |= STARTPOINT;
if( flag & ENDPOINT )
wrapper.m_TempFlags |= 2;
if( flag & STARTPOINT )
aTrack->SetFlags( STARTPOINT ); aTrack->SetFlags( STARTPOINT );
}
if( flag & ENDPOINT ) if( flag & ENDPOINT )
{
wrapper.m_TempFlags |= ENDPOINT;
aTrack->SetFlags( ENDPOINT ); aTrack->SetFlags( ENDPOINT );
}
g_DragSegmentList.push_back( wrapper ); g_DragSegmentList.push_back( wrapper );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment