X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FLayoutFile.cpp;h=541f2dae84290c8f69c305a0c713fc53e66b4f85;hb=55a3dd7b346d29a52ba305a4558e9e380ef50f47;hp=1aa5dbfeb3bc6a6e7003b8115838bf088e6dd0b4;hpb=88329a656c4be4c9179ba10023b01800574a2f53;p=lyx.git diff --git a/src/LayoutFile.cpp b/src/LayoutFile.cpp index 1aa5dbfeb3..541f2dae84 100644 --- a/src/LayoutFile.cpp +++ b/src/LayoutFile.cpp @@ -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); }