summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2013-06-01 15:31:39 +0100
committerChris Young <chris@unsatisfactorysoftware.co.uk>2013-06-01 15:31:39 +0100
commit9ad5b98fcda6e99007741d80ad29674c3b26bc77 (patch)
tree6e9cb1df075f24101b3daf8f84cba48afbcf1b73
parent40682a899e157969a67062430a87cf43cacd1186 (diff)
downloadnetsurf-9ad5b98fcda6e99007741d80ad29674c3b26bc77.tar.gz
netsurf-9ad5b98fcda6e99007741d80ad29674c3b26bc77.tar.bz2
Don't read the state of gadgets which don't exist
-rwxr-xr-xamiga/gui_options.c2
1 files changed, 2 insertions, 0 deletions
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();