Skip to content

Commit

Permalink
Swap size widget arguments to match --region (flameshot-org#2782)
Browse files Browse the repository at this point in the history
  • Loading branch information
borgmanJeremy authored Jul 12, 2022
1 parent 88f5c47 commit d4b39c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/widgets/capture/capturewidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d4b39c2

Please sign in to comment.