diff --git a/src/libs/vwidgets/vtextgraphicsitem.cpp b/src/libs/vwidgets/vtextgraphicsitem.cpp index adb284ee0..881774320 100644 --- a/src/libs/vwidgets/vtextgraphicsitem.cpp +++ b/src/libs/vwidgets/vtextgraphicsitem.cpp @@ -182,7 +182,7 @@ void VTextGraphicsItem::paint(QPainter *painter, const QStyleOptionGraphicsItem } painter->setFont(fnt); - painter->drawText(0, iY, iW, fm.height(), tl.m_eAlign, qsText); + painter->drawText(0, iY, iW, fm.height(), static_cast(tl.m_eAlign), qsText); iY += fm.height() + m_tm.GetSpacing(); }