]> git.mxchange.org Git - flightgear.git/blobdiff - src/GUI/AirportDiagram.cxx
Navaid diagram work
[flightgear.git] / src / GUI / AirportDiagram.cxx
index ab923603487745b336688605bc4caa2d0faac5ad..a800bf1e217b1275add7eb4e4f3fb6f9432a55b6 100644 (file)
@@ -182,14 +182,7 @@ void AirportDiagram::addParking(FGParkingRef park)
 
 void AirportDiagram::paintContents(QPainter* p)
 {
-      // fit bounds within our available space, allowing for a margin
-//    const int MARGIN = 32; // pixels
- //   double ratioInX = (width() - MARGIN * 2) / m_bounds.width();
- //   double ratioInY = (height() - MARGIN * 2) / m_bounds.height();
-  //  double scale = std::min(ratioInX, ratioInY);
-
-    QTransform t(transform());
-    p->setTransform(t);
+    QTransform t = p->transform();
 
 // pavements
     QBrush brush(QColor(0x9f, 0x9f, 0x9f));