From 71256ccef68f64723f84492d795e4d663bb16a50 Mon Sep 17 00:00:00 2001 From: Arin Alexander Date: Thu, 27 Jun 2019 23:23:05 +0300 Subject: [PATCH] ShapeItem has been fixed --- limereport/items/lrshapeitem.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/limereport/items/lrshapeitem.cpp b/limereport/items/lrshapeitem.cpp index a1b37d9..ab07113 100644 --- a/limereport/items/lrshapeitem.cpp +++ b/limereport/items/lrshapeitem.cpp @@ -83,6 +83,7 @@ void ShapeItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QPen pen(m_shapeColor); pen.setWidthF(m_lineWidth); pen.setStyle(m_penStyle); + pen.setJoinStyle(Qt::MiterJoin); painter->setPen(pen); QBrush brush(m_shapeBrushColor,m_shapeBrushType); brush.setTransform(painter->worldTransform().inverted()); @@ -102,7 +103,7 @@ void ShapeItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, painter->drawEllipse(rect()); break; case Rectangle: - if (m_cornerRadius!=0){ + if (m_cornerRadius != 0){ painter->setRenderHint(QPainter::Antialiasing); painter->drawRoundedRect(rect(),m_cornerRadius,m_cornerRadius); } else {