From fe6cf2f5f8de711c11cf4d40e12ea57847f16d6e Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 19 Jun 2015 11:06:52 +0200 Subject: [PATCH] 3d-viewer: Fix a regression: grid was not updated ( now updated by calling CreateDrawGL_List ) --- 3d-viewer/3d_draw.cpp | 7 ++++++- pcbnew/edit_track_width.cpp | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/3d-viewer/3d_draw.cpp b/3d-viewer/3d_draw.cpp index ebf1dac92c..11f32bede4 100644 --- a/3d-viewer/3d_draw.cpp +++ b/3d-viewer/3d_draw.cpp @@ -553,8 +553,13 @@ void EDA_3D_CANVAS::Redraw() // Grid uses transparency: draw it after all objects - if( isEnabled( FL_GRID ) && m_glLists[GL_ID_GRID] ) + if( isEnabled( FL_GRID ) ) + { + if( ! m_glLists[GL_ID_GRID] ) + CreateDrawGL_List( &errorReporter, &activityReporter ); + glCallList( m_glLists[GL_ID_GRID] ); + } // Draw Board Shadow diff --git a/pcbnew/edit_track_width.cpp b/pcbnew/edit_track_width.cpp index 91e3caf9b7..df7893e5d0 100644 --- a/pcbnew/edit_track_width.cpp +++ b/pcbnew/edit_track_width.cpp @@ -75,7 +75,7 @@ bool PCB_EDIT_FRAME::SetTrackSegmentWidth( TRACK* aTrackItem, // Micro vias have a size only defined in their netclass // (no specific values defined by a table of specific value) - // Ensure the netcall is accessible: + // Ensure the netclass is accessible: if( via->GetViaType() == VIA_MICROVIA && net == NULL ) net = aTrackItem->GetNet();