]> git.lyx.org Git - features.git/commitdiff
Tex2lyx Compile fix: use Exception Message instead of frontend::Alert. Richard, pleas...
authorAbdelrazak Younes <younes@lyx.org>
Wed, 6 Feb 2008 09:46:48 +0000 (09:46 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Wed, 6 Feb 2008 09:46:48 +0000 (09:46 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22806 a592a061-630c-0410-9148-cb99ea01b6c8

src/TextClass.cpp

index affafa6c5cc9c228a7f3848db3228574aa772914..7a51403dd365596c1e34872fa3d7d6bcbea834df 100644 (file)
@@ -28,6 +28,7 @@
 
 #include "frontends/alert.h"
 
+#include "support/ExceptionMessage.h"
 #include "support/lstrings.h"
 #include "support/FileName.h"
 #include "support/filetools.h"
@@ -480,11 +481,11 @@ bool TextClass::read(FileName const & filename, ReadType rt)
                FileName tmp = libFileSearch("layouts", "stdinsets.inc");
 
                if (tmp.empty()) {
-                       frontend::Alert::warning(_("Missing File"),
-                                       _("Could not find stdinsets.inc! This may lead to data loss!"));
+                       throw ExceptionMessage(WarningException, _("Missing File"),
+                               _("Could not find stdinsets.inc! This may lead to data loss!"));
                        error = true;
                } else if (read(tmp, MERGE)) {
-                       frontend::Alert::warning(_("Corrupt File"),
+                       throw ExceptionMessage(WarningException, _("Corrupt File"),
                                        _("Could not read stdinsets.inc! This may lead to data loss!"));
                        error = true;
                }