Commits

Anonymous committed 09a312e

#i10000#: fix assertion

  • Participants
  • Parent commits 29b50e2

Comments (0)

Files changed (1)

vcl/win/source/gdi/winlayout.cxx

 
 void UniscribeLayout::MoveGlyph( int nStartx8, long nNewXPos )
 {
-    DBG_ASSERT( (nStartx8 & 0xff), "USP::MoveGlyph(): glyph injection not disabled!" );
+    DBG_ASSERT( !(nStartx8 & 0xff), "USP::MoveGlyph(): glyph injection not disabled!" );
     int nStart = nStartx8 >> 8;
     if( nStart > mnGlyphCount )
         return;
 
 void UniscribeLayout::DropGlyph( int nStartx8 )
 {
-    DBG_ASSERT( (nStartx8 & 0xff), "USP::MoveGlyph(): glyph injection not disabled!" );
+    DBG_ASSERT( !(nStartx8 & 0xff), "USP::DropGlyph(): glyph injection not disabled!" );
     int nStart = nStartx8 >> 8;
     DBG_ASSERT( nStart<=mnGlyphCount, "USPLayout::MoveG nStart overflow" );