Merge pull request #339 from plc-user/master

remove dead code (local variables that were never used)
This commit is contained in:
Laurent Trinques 2025-02-02 12:24:19 +01:00 committed by GitHub
commit d6d38141c9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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));
}