mirror of
https://github.com/fergalmoran/flameshot.git
synced 2025-12-22 09:51:06 +00:00
Swap size widget arguments to match --region (#2782)
This commit is contained in:
@@ -538,10 +538,10 @@ void CaptureWidget::paintEvent(QPaintEvent* paintEvent)
|
||||
QFontMetrics fm = painter.fontMetrics();
|
||||
|
||||
QString xy = QString("%1x%2+%3+%4")
|
||||
.arg(static_cast<int>(selection.left() * scale))
|
||||
.arg(static_cast<int>(selection.top() * scale))
|
||||
.arg(static_cast<int>(selection.width() * scale))
|
||||
.arg(static_cast<int>(selection.height() * scale));
|
||||
.arg(static_cast<int>(selection.height() * scale))
|
||||
.arg(static_cast<int>(selection.left() * scale))
|
||||
.arg(static_cast<int>(selection.top() * scale));
|
||||
|
||||
xybox = fm.boundingRect(xy);
|
||||
// the small numbers here are just margins so the text doesn't
|
||||
|
||||
Reference in New Issue
Block a user