Commit a62f9f8c authored by Lorenz Meier's avatar Lorenz Meier

PFD: Avoid copy constructor

parent dacfcd24
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment