Avoid an error message on startup when Python/Ruby isn't enabled.

This commit is contained in:
Matthias Koefferlein 2019-11-24 00:36:46 +01:00
parent 7de90ae595
commit 20976d7521
1 changed files with 1 additions and 1 deletions

View File

@ -1849,7 +1849,7 @@ static void autorun_for (lym::MacroCollection &collection, bool early)
}
for (lym::MacroCollection::iterator c = collection.begin (); c != collection.end (); ++c) {
if ((early && c->second->is_autorun_early ()) || (!early && c->second->is_autorun () && !c->second->is_autorun_early ())) {
if (c->second->can_run () && ((early && c->second->is_autorun_early ()) || (!early && c->second->is_autorun () && !c->second->is_autorun_early ()))) {
BEGIN_PROTECTED_SILENT
c->second->run ();
c->second->install_doc ();