Commit 16e9ddc2 authored by jean-pierre charras's avatar jean-pierre charras
Browse files

* Gerbview, Pcbnew: add SetLocaleTo_Default() after reading double in config...

* Gerbview, Pcbnew: add SetLocaleTo_Default() after reading double in config to fix issues with decimal separator (when the separator is not a point).
(WxWidgets 2.9.1 seems call setlocale( LC_NUMERIC, "" ) when wxConfig read doubles stored in config, but forget to back to current locale.)
Note: perhaps there are some dialogs that need this call to  SetLocaleTo_Default() ).
* Minor  code cleanup in pcbnew/netlist.cpp
parent f2b0e185
Loading
Loading
Loading
Loading
+5243 −5239

File changed.

File size exceeds preview limit.

+6 −6
Original line number Diff line number Diff line
Cmp-Mod V01 Created by CvPCB (2011-02-21 BZR 2827)-testing date = 21/02/2011 18:31:31
Cmp-Mod V01 Created by CvPCB (2011-03-30 BZR 2935)-testing date = 02/04/2011 13:22:13

BeginCmp
TimeStamp = /322D3011;
@@ -123,35 +123,35 @@ BeginCmp
TimeStamp = /322D31F4;
Reference = U1;
ValeurCmp = 74LS245;
IdModule  = 20dip300;
IdModule  = DIP-20__300;
EndCmp

BeginCmp
TimeStamp = /322D35B4;
Reference = U2;
ValeurCmp = 74LS688;
IdModule  = 20dip300;
IdModule  = DIP-20__300;
EndCmp

BeginCmp
TimeStamp = /4A087146;
Reference = U3;
ValeurCmp = 74LS541;
IdModule  = ;
IdModule  = DIP-20__300;
EndCmp

BeginCmp
TimeStamp = /3240023F;
Reference = U5;
ValeurCmp = 628128;
IdModule  = 32dip600;
IdModule  = DIP-32__600;
EndCmp

BeginCmp
TimeStamp = /322D321C;
Reference = U8;
ValeurCmp = EP600;
IdModule  = 24dip300;
IdModule  = DIP-24__300;
EndCmp

BeginCmp
+9 −7
Original line number Diff line number Diff line
update=07/03/2011 19:57:09
update=02/04/2011 15:02:30
version=1
last_client=pcbnew
[common]
@@ -72,13 +72,15 @@ DrawLar=150
EdgeLar=50
TxtLar=170
MSegLar=150
LastNetListRead=..\\pic_programmer\\pic_programmer.net
LastNetListRead=interf_u.net
[pcbnew/libraries]
LibDir=
LibName1=connect
LibName2=discret
LibName3=dip_sockets
LibName4=pin_array
LibName5=divers
LibName6=libcms
LibName7=display
LibName3=led
LibName4=sockets
LibName5=dip_sockets
LibName6=pin_array
LibName7=divers
LibName8=libcms
LibName9=display
+1 −0
Original line number Diff line number Diff line
@@ -108,6 +108,7 @@ bool WinEDA_App::OnInit()
    frame->Zoom_Automatique( true );        // Zoom fit in frame
    frame->GetScreen()->m_FirstRedraw = false;


    if( argc <= 1 )
        return true;

+3 −5
Original line number Diff line number Diff line
@@ -3,14 +3,12 @@
/************************************************/

#include "fctsys.h"
#include "appl_wxstruct.h"
#include "common.h"
#include "class_drawpanel.h"
#include "confirm.h"
#include "gestfich.h"
#include "pcbcommon.h"
#include "gerbview.h"
#include "pcbplot.h"
//#include "pcbplot.h"
#include "hotkeys.h"
#include "class_board_design_settings.h"
#include "gerbview_config.h"
@@ -43,8 +41,8 @@ void GERBVIEW_FRAME::Process_Config( wxCommandEvent& event )
        break;

    default:
        DisplayError( this,
                     wxT( "GERBVIEW_FRAME::Process_Config internal error" ) );
        wxMessageBox( wxT( "GERBVIEW_FRAME::Process_Config error" ) );
        break;
    }
}

Loading