Loading 3d-viewer/3d_canvas.cpp +10 −0 Original line number Diff line number Diff line Loading @@ -63,18 +63,26 @@ END_EVENT_TABLE() /*************************************************************************/ Pcb3D_GLCanvas::Pcb3D_GLCanvas( WinEDA3D_DrawFrame* parent ) : #if wxCHECK_VERSION( 2, 9, 0 ) wxGLCanvas( parent, -1, NULL, wxDefaultPosition, wxDefaultSize, wxFULL_REPAINT_ON_RESIZE ) #else wxGLCanvas( parent, -1, wxDefaultPosition, wxDefaultSize, wxFULL_REPAINT_ON_RESIZE ) #endif /*************************************************************************/ { m_init = FALSE; m_gllist = 0; m_Parent = parent; #if wxCHECK_VERSION( 2, 9, 0 ) // Explicitly create a new rendering context instance for this canvas. m_glRC = new wxGLContext(this); // Make the new context current (activate it for use) with this canvas. SetCurrent(*m_glRC); #else SetCurrent(NULL); #endif DisplayStatus(); } Loading @@ -85,7 +93,9 @@ Pcb3D_GLCanvas::~Pcb3D_GLCanvas() { ClearLists(); m_init = FALSE; #if wxCHECK_VERSION( 2, 9, 0 ) delete m_glRC; #endif } Loading 3d-viewer/3d_draw.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -46,7 +46,11 @@ static GLfloat Get3DLayerSide( int act_layer ); void Pcb3D_GLCanvas::Redraw( bool finish ) /******************************************/ { #if wxCHECK_VERSION( 2, 9, 0 ) SetCurrent(*m_glRC); #else SetCurrent(NULL); #endif InitGL(); glMatrixMode( GL_MODELVIEW ); /* position viewer */ Loading 3d-viewer/3d_viewer.h +2 −0 Original line number Diff line number Diff line Loading @@ -79,7 +79,9 @@ public: private: bool m_init; GLuint m_gllist; #if wxCHECK_VERSION( 2, 9, 0 ) wxGLContext* m_glRC; #endif public: Pcb3D_GLCanvas( WinEDA3D_DrawFrame *parent ); Loading eeschema/class_netlist_object.cpp +3 −2 Original line number Diff line number Diff line Loading @@ -119,13 +119,14 @@ NETLIST_OBJECT::NETLIST_OBJECT() m_Label = 0; /* For all labels:pointer on the text label */ } // Copy constructor NETLIST_OBJECT::NETLIST_OBJECT( NETLIST_OBJECT& aSource ) { *this = aSource; m_Label = NULL; // set to null because some items are owner, so the delete operator can create problems // if this member is copied here (if 2 different items are owner of the same object) } NETLIST_OBJECT::~NETLIST_OBJECT() { /* NETLIST_OBJECT is owner of m_Label only if its type is Loading eeschema/netlist.cpp +0 −1 Original line number Diff line number Diff line Loading @@ -740,7 +740,6 @@ static int ConvertBusToMembers( NETLIST_OBJECT_LIST& aNetItemBuffer, { NETLIST_OBJECT* new_label = new NETLIST_OBJECT( BusLabel ); NumItem++; /* Convertion du BusLabel en la racine du Label + le numero du fil */ BufLine = BusLabel.m_Label->Left( RootBusNameLength ); BufLine << BusMember; Loading Loading
3d-viewer/3d_canvas.cpp +10 −0 Original line number Diff line number Diff line Loading @@ -63,18 +63,26 @@ END_EVENT_TABLE() /*************************************************************************/ Pcb3D_GLCanvas::Pcb3D_GLCanvas( WinEDA3D_DrawFrame* parent ) : #if wxCHECK_VERSION( 2, 9, 0 ) wxGLCanvas( parent, -1, NULL, wxDefaultPosition, wxDefaultSize, wxFULL_REPAINT_ON_RESIZE ) #else wxGLCanvas( parent, -1, wxDefaultPosition, wxDefaultSize, wxFULL_REPAINT_ON_RESIZE ) #endif /*************************************************************************/ { m_init = FALSE; m_gllist = 0; m_Parent = parent; #if wxCHECK_VERSION( 2, 9, 0 ) // Explicitly create a new rendering context instance for this canvas. m_glRC = new wxGLContext(this); // Make the new context current (activate it for use) with this canvas. SetCurrent(*m_glRC); #else SetCurrent(NULL); #endif DisplayStatus(); } Loading @@ -85,7 +93,9 @@ Pcb3D_GLCanvas::~Pcb3D_GLCanvas() { ClearLists(); m_init = FALSE; #if wxCHECK_VERSION( 2, 9, 0 ) delete m_glRC; #endif } Loading
3d-viewer/3d_draw.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -46,7 +46,11 @@ static GLfloat Get3DLayerSide( int act_layer ); void Pcb3D_GLCanvas::Redraw( bool finish ) /******************************************/ { #if wxCHECK_VERSION( 2, 9, 0 ) SetCurrent(*m_glRC); #else SetCurrent(NULL); #endif InitGL(); glMatrixMode( GL_MODELVIEW ); /* position viewer */ Loading
3d-viewer/3d_viewer.h +2 −0 Original line number Diff line number Diff line Loading @@ -79,7 +79,9 @@ public: private: bool m_init; GLuint m_gllist; #if wxCHECK_VERSION( 2, 9, 0 ) wxGLContext* m_glRC; #endif public: Pcb3D_GLCanvas( WinEDA3D_DrawFrame *parent ); Loading
eeschema/class_netlist_object.cpp +3 −2 Original line number Diff line number Diff line Loading @@ -119,13 +119,14 @@ NETLIST_OBJECT::NETLIST_OBJECT() m_Label = 0; /* For all labels:pointer on the text label */ } // Copy constructor NETLIST_OBJECT::NETLIST_OBJECT( NETLIST_OBJECT& aSource ) { *this = aSource; m_Label = NULL; // set to null because some items are owner, so the delete operator can create problems // if this member is copied here (if 2 different items are owner of the same object) } NETLIST_OBJECT::~NETLIST_OBJECT() { /* NETLIST_OBJECT is owner of m_Label only if its type is Loading
eeschema/netlist.cpp +0 −1 Original line number Diff line number Diff line Loading @@ -740,7 +740,6 @@ static int ConvertBusToMembers( NETLIST_OBJECT_LIST& aNetItemBuffer, { NETLIST_OBJECT* new_label = new NETLIST_OBJECT( BusLabel ); NumItem++; /* Convertion du BusLabel en la racine du Label + le numero du fil */ BufLine = BusLabel.m_Label->Left( RootBusNameLength ); BufLine << BusMember; Loading