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
parent 4b380f3bcc
commit 2f0a77d170
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()) );
}