Skip to content

Commit

Permalink
PFD: Avoid copy constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzMeier committed Oct 27, 2014
1 parent dacfcd2 commit a62f9f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/PrimaryFlightDisplay.cc
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ void PrimaryFlightDisplay::drawTextCenterBottom (
font.setPixelSize(pixelSize);
painter.setFont(font);

QFontMetrics metrics = QFontMetrics(font);
QFontMetrics metrics(font);
QRect bounds = metrics.boundingRect(text);
int flags = Qt::AlignCenter;
painter.drawText(x - bounds.width()/2, y, bounds.width(), bounds.height(), flags, text);
Expand Down

0 comments on commit a62f9f8

Please sign in to comment.