marc-lorber / oregano

Schematic capture and circuit simulator
GNU General Public License v2.0
96 stars 17 forks source link

Viewing netlist problem #12

Open hansiglaser opened 11 years ago

hansiglaser commented 11 years ago

Despite I've setup in the preferences to use Ngspice instead of Gnucap, the dialog which comes after I choose View -> Netlist still says "* GNUCAP - NETLIST" in its third line. When clicking the "Save" button below it, the file also says "GNUCAP".

When I choose Tools -> Create netlist, the file says "* SPICE 3 - NETLIST".

dionysos-sf commented 11 years ago

I investigated this problem, I think I found a fix for it. Here is the patch :

--- src/netlist-editor.c.orig 2012-06-09 09:05:16.000000000 +0200 +++ src/netlist-editor.c 2013-02-02 22:05:56.870143529 +0100 @@ -37,6 +37,7 @@

include "simulation.h"

include "file.h"

include "dialogs.h"

+#include "oregano.h"

static void netlist_editor_finalize (GObject object); static void netlist_editor_dispose (GObject object); @@ -329,7 +330,7 @@

sm = schematic_view_get_schematic (sv);
dionysos-sf commented 11 years ago

I don't know how to attach a file (patch) here, I don't like the render of my previous post :(

To fix the problem, in file "src/netlist-editor.c", add

include "oregano.h"

then replace "OREGANO_ENGINE_GNUCAP" with "oregano.engine"