eeschema: -cache.lib file not created the first time you save
Bug #1102381 reported by
Jacobo Aragunde Pérez
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KiCad |
Fix Released
|
Undecided
|
Jacobo Aragunde Pérez |
Bug Description
Application: KiCad
Version: (2013-01-20 BZR 3915)-testing
Build: wxWidgets 2.8.12 (no debug,Unicode,
Platform: Linux 3.7.2-201.
Boost version: 1.49.0
Options: USE_PCBNEW_
When you save a new .sch file for the first time, the corresponding -cache.lib file is not created. It is created only after you close the document, open it again and then save.
To post a comment you must log in.
Two different things are happening here:
1. When you use "save current sheet as" the code to generate the -cache.lib file is not called.
2. When you use "save whole schematic project" and the document is new, the code is called but the file name is not assigned correctly: the file is named "-cache.lib" instead of "noname-cache.lib".
The attached patch fixes both. To fix (2), I replaced the call
fn = g_RootSheet- >GetFileName( );
with
fn = ScreenList. GetFirst( )->GetFileName( );
Let me know what you think :)