From 68eb62ca34fb936efa5bb35cddbf89f61e6912e2 Mon Sep 17 00:00:00 2001 From: Nathan Lee <2431820-nathanal@users.noreply.gitlab.com> Date: Tue, 30 Jul 2019 12:17:51 +1000 Subject: Hide spellcheck dialog if Aspell is missing Hide warnings emitted if Aspell/Potrace missing --- src/verbs.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/verbs.h') diff --git a/src/verbs.h b/src/verbs.h index d3a63320c..d70a3dbfd 100644 --- a/src/verbs.h +++ b/src/verbs.h @@ -13,6 +13,10 @@ * Released under GNU GPL v2+, read the file 'COPYING' for more information. */ +#ifdef HAVE_CONFIG_H +# include "config.h" // only include where actually required! +#endif + #include #include #include @@ -324,7 +328,11 @@ enum { SP_VERB_DIALOG_XML_EDITOR, SP_VERB_DIALOG_SELECTORS, SP_VERB_DIALOG_FIND, + +#if HAVE_ASPELL SP_VERB_DIALOG_SPELLCHECK, +#endif + SP_VERB_DIALOG_DEBUG, SP_VERB_DIALOG_TOGGLE, SP_VERB_DIALOG_CLONETILER, -- cgit v1.2.3