Fixed rounded rectangle bug
This commit is contained in:
committed by
borgmanJeremy
parent
f24bae0a18
commit
ebc94b1131
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user