]> git.lyx.org Git - lyx.git/blobdiff - src/lyxtextclasslist.C
* remove various xforms relicts, in particular:
[lyx.git] / src / lyxtextclasslist.C
index d0be70ff77546d8ab12b068dd67189481526bfa3..0b845e4c9b2aa0289826f62ad737b90da1ca60ff 100644 (file)
@@ -217,15 +217,16 @@ LyXTextClassList textclasslist;
 
 
 // Reads the style files
-void LyXSetStyle()
+bool LyXSetStyle()
 {
        lyxerr[Debug::TCLASS] << "LyXSetStyle: parsing configuration..." << endl;
 
        if (!textclasslist.read()) {
                lyxerr[Debug::TCLASS] << "LyXSetStyle: an error occured "
                        "during parsing.\n             Exiting." << endl;
-               exit(1);
+               return false;
        }
 
        lyxerr[Debug::TCLASS] << "LyXSetStyle: configuration parsed." << endl;
+       return true;
 }