Commit f2b43e75 authored by CHARRAS's avatar CHARRAS

solved drc.cpp error (pcbnew crashes in track creation or edition). very minor...

solved drc.cpp error (pcbnew crashes in track creation or edition). very minor other changes (translation)
parent 0f452cc0
...@@ -760,7 +760,7 @@ int CheckAnnotate( WinEDA_SchematicFrame* frame, bool OneSheetOnly ) ...@@ -760,7 +760,7 @@ int CheckAnnotate( WinEDA_SchematicFrame* frame, bool OneSheetOnly )
continue; continue;
} }
/* Test error if units are different but number of parts per package to hight /* Test error if units are different but number of parts per package too hight
* (ex U3 ( 1 part) and we find U3B the is an error) */ * (ex U3 ( 1 part) and we find U3B the is an error) */
if( ListeCmp[ii].m_NbParts != ListeCmp[ii + 1].m_NbParts ) if( ListeCmp[ii].m_NbParts != ListeCmp[ii + 1].m_NbParts )
{ {
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
COMMON_GLOBL wxString g_BuildVersion COMMON_GLOBL wxString g_BuildVersion
#ifdef EDA_BASE #ifdef EDA_BASE
(wxT("(2007-11-29)")) (wxT("(2007-12-08)"))
#endif #endif
; ;
......
No preview for this file type
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -70,7 +70,7 @@ WinEDA_BasePcbFrame::~WinEDA_BasePcbFrame( void ) ...@@ -70,7 +70,7 @@ WinEDA_BasePcbFrame::~WinEDA_BasePcbFrame( void )
int WinEDA_BasePcbFrame::BestZoom( void ) int WinEDA_BasePcbFrame::BestZoom( void )
/**************************************/ /**************************************/
/** /**
* Return the "best" zoom, i.e. the zoom which shows the entire borad on screen * Return the "best" zoom, i.e. the zoom which shows the entire board on screen
*/ */
{ {
int dx, dy, ii, jj; int dx, dy, ii, jj;
...@@ -96,7 +96,9 @@ int WinEDA_BasePcbFrame::BestZoom( void ) ...@@ -96,7 +96,9 @@ int WinEDA_BasePcbFrame::BestZoom( void )
} }
/***********************************************************/
void WinEDA_BasePcbFrame::CursorGoto( const wxPoint& aPos ) void WinEDA_BasePcbFrame::CursorGoto( const wxPoint& aPos )
/***********************************************************/
{ {
// factored out of pcbnew/find.cpp // factored out of pcbnew/find.cpp
...@@ -112,7 +114,7 @@ void WinEDA_BasePcbFrame::CursorGoto( const wxPoint& aPos ) ...@@ -112,7 +114,7 @@ void WinEDA_BasePcbFrame::CursorGoto( const wxPoint& aPos )
} }
else else
{ {
// Positionnement du curseur sur l'item // Put cursor on item position
DrawPanel->CursorOff( &dc ); DrawPanel->CursorOff( &dc );
screen->m_Curseur = aPos; screen->m_Curseur = aPos;
GRMouseWarp( DrawPanel, screen->m_Curseur ); GRMouseWarp( DrawPanel, screen->m_Curseur );
...@@ -149,7 +151,7 @@ void WinEDA_BasePcbFrame::GeneralControle( wxDC* DC, wxPoint Mouse ) ...@@ -149,7 +151,7 @@ void WinEDA_BasePcbFrame::GeneralControle( wxDC* DC, wxPoint Mouse )
void WinEDA_BasePcbFrame::Show3D_Frame( wxCommandEvent& event ) void WinEDA_BasePcbFrame::Show3D_Frame( wxCommandEvent& event )
/***********************************************************/ /***********************************************************/
/* Creat and show the 3D frame display /* Creates and shows the 3D frame display
*/ */
{ {
#ifndef GERBVIEW #ifndef GERBVIEW
......
...@@ -199,9 +199,12 @@ void DRC::updatePointers() ...@@ -199,9 +199,12 @@ void DRC::updatePointers()
m_drawPanel = m_mainWindow->DrawPanel; m_drawPanel = m_mainWindow->DrawPanel;
m_pcb = m_mainWindow->m_Pcb; m_pcb = m_mainWindow->m_Pcb;
m_ui->m_ClearanceListBox->SetList( new DRC_LIST_MARKERS( m_pcb ) ); if ( m_ui ) // Use diag list boxes only in DRC dialog
{
m_ui->m_ClearanceListBox->SetList( new DRC_LIST_MARKERS( m_pcb ) );
m_ui->m_UnconnectedListBox->SetList( new DRC_LIST_UNCONNECTED( &m_unconnected ) ); m_ui->m_UnconnectedListBox->SetList( new DRC_LIST_UNCONNECTED( &m_unconnected ) );
}
} }
......
...@@ -22,9 +22,7 @@ ...@@ -22,9 +22,7 @@
#include "find.h" #include "find.h"
/* Fonctions locales */ /*Local Variables */
/* variables locales */
static wxString s_OldStringFound; static wxString s_OldStringFound;
static int s_ItemCount, s_MarkerCount; static int s_ItemCount, s_MarkerCount;
......
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