]> git.lyx.org Git - lyx.git/blobdiff - src/insets/ExternalTemplate.C
prevent crash when inserting minipage in table cell,
[lyx.git] / src / insets / ExternalTemplate.C
index 45e2362ac7546216ff5dd2803ccf4f6d5a3b57e7..8c7a3c65aeb5c3312ecc976c63f1d2b19bdf532a 100644 (file)
@@ -20,6 +20,7 @@
 #include "support/path.h"
 #include "support/LAssert.h"
 #include "support/filetools.h"
+#include "support/path_defines.h"
 
 using namespace lyx::support;
 
@@ -27,9 +28,6 @@ using std::endl;
 using std::ostream;
 using std::for_each;
 
-extern string user_lyxdir;
-
-
 // We have to have dummy default commands for security reasons!
 
 ExternalTemplate::ExternalTemplate()
@@ -44,7 +42,7 @@ ExternalTemplate::FormatTemplate::FormatTemplate()
 ExternalTemplateManager::ExternalTemplateManager()
 {
        // gimp gnuchess gnuplot ical netscape tetris xpaint
-       readTemplates(user_lyxdir);
+       readTemplates(user_lyxdir());
        if (lyxerr.debugging())
                dumpTemplates();
 }