X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FBullet.cpp;h=1f4ef6af95ac601c06b0014c3f2ee17516fd33d8;hb=a097e0cf82bdf7b0686eecc96140744b859ccd82;hp=c3093abc753b535286f2fb472c51b75e1e3d270a;hpb=f1cba8ff64b369792fd49f5ddf90e8126ab476ac;p=lyx.git diff --git a/src/Bullet.cpp b/src/Bullet.cpp index c3093abc75..1f4ef6af95 100644 --- a/src/Bullet.cpp +++ b/src/Bullet.cpp @@ -348,25 +348,25 @@ docstring const Bullet::bulletEntry(int f, int c) void Bullet::testInvariant() const { #ifdef ENABLE_ASSERTIONS - LASSERT(font >= MIN, /**/); - LASSERT(font < FONTMAX, /**/); - LASSERT(character >= MIN, /**/); - LASSERT(character < CHARMAX, /**/); - LASSERT(size >= MIN, /**/); - LASSERT(size < SIZEMAX, /**/); - LASSERT(user_text >= -1, /**/); - LASSERT(user_text <= 1, /**/); + LATTEST(font >= MIN); + LATTEST(font < FONTMAX); + LATTEST(character >= MIN); + LATTEST(character < CHARMAX); + LATTEST(size >= MIN); + LATTEST(size < SIZEMAX); + LATTEST(user_text >= -1); + LATTEST(user_text <= 1); // now some relational/operational tests if (user_text == 1) { - LASSERT(font == -1 && (character == -1 && size == -1), /**/); - // LASSERT(!text.empty(), /**/); // this isn't necessarily an error + LATTEST(font == -1 && (character == -1 && size == -1)); + // LATTEST(!text.empty()); // this isn't necessarily an error } // else if (user_text == -1) { - // LASSERT(!text.empty(), /**/); // this also isn't necessarily an error + // LATTEST(!text.empty()); // this also isn't necessarily an error // } // else { // // user_text == 0 - // LASSERT(text.empty(), /**/); // not usually true + // LATTEST(text.empty()); // not usually true // } #endif }