]> git.lyx.org Git - lyx.git/blobdiff - src/LayoutFile.cpp
listerrors.lyx : Update a link.
[lyx.git] / src / LayoutFile.cpp
index 1aa5dbfeb3bc6a6e7003b8115838bf088e6dd0b4..541f2dae84290c8f69c305a0c713fc53e66b4f85 100644 (file)
@@ -314,13 +314,7 @@ bool LayoutFileList::load(string const & name, string const & buf_path)
        }
 
        LayoutFile * tc = classmap_[name];
-       if (!tc->load(buf_path)) {
-               docstring s = bformat(_("The document class %1$s "
-                                  "could not be loaded."), from_utf8(name));
-               frontend::Alert::error(_("Could not load class"), s);
-               return false;
-       }
-       return true;
+       return tc->load(buf_path);
 }