]> git.lyx.org Git - lyx.git/blobdiff - src/PrinterParams.cpp
Adjust indentation after ff42fea8.
[lyx.git] / src / PrinterParams.cpp
index 0a6620f6c6d27f1d839f3828e6a284607ad482ad..af9c5bd590c861e5a098d960303100bdd29afe82 100644 (file)
@@ -14,7 +14,7 @@
 
 #include "LyXRC.h"
 
-#include "support/assert.h"
+#include "support/lassert.h"
 #include "support/lstrings.h"
 
 
@@ -40,17 +40,21 @@ PrinterParams::PrinterParams()
 
 void PrinterParams::testInvariant() const
 {
+#ifdef ENABLE_ASSERTIONS
        switch (target) {
        case PRINTER:
-               LASSERT(!printer_name.empty(), /**/);
+               // We can't do this test, because no default printer
+               // may have been set.
+               // LASSERT(!printer_name.empty(), /**/);
                break;
        case FILE:
-               LASSERT(!file_name.empty(), /**/);
+               LATTEST(!file_name.empty());
                break;
        default:
-               LASSERT(false, /**/);
+               LATTEST(false);
                break;
        }
+#endif
 }