Skip to content

Commit

Permalink
Merge pull request #339 from plc-user/master
Browse files Browse the repository at this point in the history
remove dead code (local variables that were never used)
  • Loading branch information
scorpio810 authored Feb 2, 2025
2 parents de0fa1f + 331cecc commit d6d3814
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions sources/qetgraphicsitem/qetshapeitem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -906,17 +906,6 @@ QDomElement QetShapeItem::toXml(QDomDocument &document) const

if (m_shapeType == Rectangle)
{
QRectF rect(m_P1, m_P2);
rect = rect.normalized();
qreal x = m_xRadius;
if (x > rect.width()/2) {
x = rect.width()/2;
}
qreal y = m_yRadius;
if (y > rect.height()/2) {
y = rect.height()/2;
}

result.setAttribute("rx", QString::number(m_xRadius));
result.setAttribute("ry", QString::number(m_yRadius));
}
Expand Down

0 comments on commit d6d3814

Please sign in to comment.