After an assertion failure, the user might continue. If we ASSERT(0),

return.  (We should probably be throwing, though.)
This commit is contained in:
Glenn Maynard
2002-09-07 10:01:42 +00:00
parent ff279255d5
commit 856dbee8f5
+2 -2
View File
@@ -202,7 +202,7 @@ void BitmapText::DrawPrimitives()
case align_bottom: iY = -(m_iNumLines) * iLineSpacing + iLineSpacing/2; break;
case align_middle: iY = -(m_iNumLines-1) * iLineSpacing/2; break;
case align_top: iY = + iLineSpacing/2; break;
default: ASSERT( false );
default: ASSERT( false ); return;
}
@@ -218,7 +218,7 @@ void BitmapText::DrawPrimitives()
case align_left: iX = 0; break;
case align_center: iX = -(iLineWidth/2); break;
case align_right: iX = -iLineWidth; break;
default: ASSERT( false );
default: ASSERT( false ); return;
}
for( int j=0; j<iLineLength; j++ ) // for each character in the line