From 2f0a77d170a06debe98ca5857c5d7bc8c8137311 Mon Sep 17 00:00:00 2001 From: Rob Taylor Date: Sat, 26 Aug 2023 15:02:30 +0100 Subject: [PATCH] Fix bitwise OR used instead of AND for flag check --- hurricane/src/viewer/DynamicLabel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hurricane/src/viewer/DynamicLabel.cpp b/hurricane/src/viewer/DynamicLabel.cpp index 98b6dd0a..91176624 100644 --- a/hurricane/src/viewer/DynamicLabel.cpp +++ b/hurricane/src/viewer/DynamicLabel.cpp @@ -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()) ); }