QTransform t(transform());
p.setTransform(t);
- paintCoastlines(&p);
+ paintPolygonData(&p);
paintNavaids(&p);
painter->drawPixmap(airplaneIconRect, pix);
}
-void BaseDiagram::paintCoastlines(QPainter* painter)
+void BaseDiagram::paintPolygonData(QPainter* painter)
{
QTransform xf = painter->transform();
QTransform invT = xf.inverted();
void paintNavaid(QPainter *painter,
const QTransform& t,
const FGPositionedRef &pos);
- void paintCoastlines(QPainter *painter);
+ void paintPolygonData(QPainter *painter);
void paintGeodVec(QPainter *painter, const flightgear::SGGeodVec &vec);
void fillClosedGeodVec(QPainter *painter, const QColor &color, const flightgear::SGGeodVec &vec);
};
SGPath path(globals->get_fg_root());
path.append( "Geodata" );
path.append(aFileName);
+ if (!path.exists())
+ return; // silently fail for now
+
flightgear::PolyLineList lines;
flightgear::SHPParser::parsePolyLines(path, aType, lines, areClosed);
flightgear::PolyLineList::iterator it;