Fixed rounded rectangle bug

This commit is contained in:
Jeremy Borgman
2021-02-11 08:20:53 -06:00
committed by borgmanJeremy
parent f24bae0a18
commit ebc94b1131
2 changed files with 7 additions and 7 deletions

View File

@@ -66,12 +66,7 @@ void SelectionTool::process(QPainter& painter,
updateBackup(pixmap);
}
painter.setPen(QPen(m_color, PADDING_VALUE + m_thickness));
if (m_thickness == 0) {
painter.drawRect(QRect(m_points.first, m_points.second));
} else {
painter.drawRoundedRect(
QRect(m_points.first, m_points.second), m_thickness, m_thickness);
}
painter.drawRect(QRect(m_points.first, m_points.second));
}
void SelectionTool::paintMousePreview(QPainter& painter,