Fix bitwise OR used instead of AND for flag check
This commit is contained in:
parent
4b380f3bcc
commit
2f0a77d170
|
@ -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()) );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue