From 9ad5b98fcda6e99007741d80ad29674c3b26bc77 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sat, 1 Jun 2013 15:31:39 +0100 Subject: Don't read the state of gadgets which don't exist --- amiga/gui_options.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'amiga/gui_options.c') diff --git a/amiga/gui_options.c b/amiga/gui_options.c index a68a4ecb6..e436cd2e9 100755 --- a/amiga/gui_options.c +++ b/amiga/gui_options.c @@ -1818,6 +1818,7 @@ void ami_gui_opts_use(bool save) nsoption_set_bool(hide_docky_icon, true); } +#ifdef WITH_PDF_EXPORT GetAttr(INTEGER_Number,gow->objects[GID_OPTS_MARGIN_TOP],(ULONG *)&nsoption_int(margin_top)); GetAttr(INTEGER_Number,gow->objects[GID_OPTS_MARGIN_LEFT],(ULONG *)&nsoption_int(margin_left)); @@ -1862,6 +1863,7 @@ void ami_gui_opts_use(bool save) } else { nsoption_set_bool(enable_PDF_password, false); } +#endif if(rescan_fonts == true) { ami_font_finiscanner(); -- cgit v1.2.3