Commit 4537ac8c authored by charras's avatar charras
Browse files

Fixed cvpcb crash (only when compiled in Debug version)

parent f7452ce1
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -62,6 +62,12 @@ WinEDA_DisplayFrame::WinEDA_DisplayFrame( WinEDA_CvpcbFrame* father,
    SetBaseScreen( new PCB_SCREEN() );

    LoadSettings();

    // Initialize some display options
    DisplayOpt.DisplayPadIsol = false;      // Pad clearance has no meaning here
    DisplayOpt.ShowTrackClearanceMode = 0;  // tracks and vias clearance has no meaning here


    SetSize( m_FramePos.x, m_FramePos.y, m_FrameSize.x, m_FrameSize.y );
    ReCreateHToolbar();
    ReCreateVToolbar();
+0 −1
Original line number Diff line number Diff line
@@ -119,7 +119,6 @@ found in the default search paths." ),
            if( stricmp( Name, CONV_TO_UTF8( CmpName ) ) == 0 )  /* composant localise */
            {
                Module = new MODULE( GetBoard() );

                // Switch the locale to standard C (needed to print floating point numbers like 1.3)
                SetLocaleTo_C_standard();
                Module->ReadDescr( file, &LineNum );
+4 −0
Original line number Diff line number Diff line
@@ -74,6 +74,10 @@ bool WinEDA_App::OnInit()
    frame->SetTitle( GetTitle() + wxT( " " ) + GetBuildVersion() );
    frame->SetBoard( new BOARD( NULL, frame ) );

    // Initialize some display options
    DisplayOpt.DisplayPadIsol = false;      // Pad clearance has no meaning here
    DisplayOpt.ShowTrackClearanceMode = 0;  // tracks and vias clearance has no meaning here

    SetTopWindow( frame );              // Set GerbView mainframe on top
    frame->Show( TRUE );                // Show GerbView mainframe
    frame->Zoom_Automatique( TRUE );    // Zoomfit drawing in frame
−2.03 KiB (186 KiB)

File changed.

No diff preview for this file type.

Loading