Hi David,
Here is the patch again:
Unfortunately, when I compile Inkscape with this patch applied and try to open the Scheme console via View->Scheme, the result is a crash. :(
A backtrace is attached below. I really hope you or someone else has the time to look into this. I'd also love to see the Scheme Scripting console in 0.46 if possible.
Cheers, Max
-------------------------------------------------
Backtrace:
#0 0xb6e8513d in getc () from /lib/libc.so.6 #1 0x0854a2e9 in basic_inchar (pt=0xa53957c) at extension/script/tinyscheme/scheme.c:1464 #2 0x0854a529 in inchar (sc=0xa539400) at extension/script/tinyscheme/scheme.c:1521 #3 0x0854a5e7 in token (sc=0xa539400) at extension/script/tinyscheme/scheme.c:1774 #4 0x0854f9c0 in opexe_0 (sc=0xa539400, op=OP_READ_INTERNAL) at extension/script/tinyscheme/scheme.c:2465 #5 0x0854c1f3 in Eval_Cycle (sc=0xa539400, op=OP_LOAD) at extension/script/tinyscheme/scheme.c:4333 #6 0x0854c57f in scheme_load_file (sc=0xa539400, fin=0x0) at extension/script/tinyscheme/scheme.c:4669 #7 0x08547517 in Inkscape::Extension::Script::InkscapeScheme::tinyscheme_init (this=0xab6ddc0) at extension/script/InkscapeScheme.cpp:165 #8 0x0826e356 in SchemeDialogImpl (this=0xab6dc00) at ui/dialog/schemedialog.cpp:252 #9 0x0826f892 in Inkscape::UI::Dialog::SchemeDialog::getInstance () at ui/dialog/schemedialog.cpp:359 #10 0x081da454 in Inkscape::UI::Dialog::PanelDialogInkscape::UI::Dialog::Behavior::DockBehavior::createInkscape::UI::Dialog::SchemeDialog () at ./ui/dialog/panel-dialog.h:164 #11 0x081da4db in Inkscape::UI::Dialog::(anonymous namespace)::create<Inkscape::UI::Dialog::SchemeDialog, Inkscape::UI::Dialog::Behavior::DockBehavior> () at ui/dialog/dialog-manager.cpp:59 #12 0x081d6b95 in Inkscape::UI::Dialog::DialogManager::getDialog (this=0x8eb01d8, name=1857) at ui/dialog/dialog-manager.cpp:212 #13 0x081d6c18 in Inkscape::UI::Dialog::DialogManager::showDialog (this=0x8eb01d8, name=1857) at ui/dialog/dialog-manager.cpp:231 #14 0x0838a030 in sp_action_perform (action=0x8edbfc0, data=0x0) at helper/action.cpp:181 #15 0xb73df95f in g_cclosure_marshal_VOID__VOID () from /usr/lib/libgobject-2.0.so.0 #16 0xb73d2619 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0 #17 0xb73e6dfb in ?? () from /usr/lib/libgobject-2.0.so.0 #18 0x08f67c10 in ?? () #19 0x00000000 in ?? ()