Fix bitwise OR used instead of AND for flag check

This commit is contained in:
Rob Taylor 2023-08-26 15:02:30 +01:00 committed by Jean-Paul Chaput
parent a77c7bf9bc
commit c0dfed21e4
1 changed files with 2 additions and 2 deletions

View File

@ -72,8 +72,8 @@ namespace Hurricane {
QFont font = Graphics::getFixedFont(QFont::Bold);
int cwidth = QFontMetrics(font).width('X');
if ( flags|NoIndent ) _dynamicLabel->setIndent( 0 );
if ( flags|HalfIndent ) _dynamicLabel->setIndent( cwidth/2 );
if ( flags & NoIndent ) _dynamicLabel->setIndent( 0 );
if ( flags & HalfIndent ) _dynamicLabel->setIndent( cwidth/2 );
_dynamicLabel->setMinimumSize( QSize(cwidth*chars,QFontMetrics(font).height()) );
}