|
From: wwp <sub...@fr...> - 2007-02-10 18:28:22
|
Hi Qball,
there's a crash I reproduce every time here, it's when exporting to HTML, if
Embed Default CSS is checked (1st checkbox) and if Export Current Cat only =
is
checked too (last checkbox). Here's a quick patch against current SVN that
does check for pointer sanity, maybe not exactly what you'd like but it does
the fix to me:
Index: src/export.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- src/export.c (revision 8)
+++ src/export.c (working copy)
@@ -207,7 +207,7 @@
if(gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(cb_curcat)))
{
int i=3D 0, cat =3D 0;
- for(i=3D0;param_string[i] !=3D NULL;i++);
+ for(i=3D0;param_string && param_string[i] !=3D NULL;i++);
cat =3D gtk_option_menu_get_history (GTK_OPTION_MENU (mw.op=
tion));
if(cat !=3D 0)
BTW, do you think that exporting to HTML could keep the current sort method?
Regards,
--=20
wwp
|