Skip to content

Commit

Permalink
Fixed display flags for transparent aprons in X-Plane.
Browse files Browse the repository at this point in the history
  • Loading branch information
albar965 committed Jul 20, 2019
1 parent 625ef34 commit 399e739
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/fs/xp/xpairportwriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -480,11 +480,13 @@ void XpAirportWriter::bindPavement(const QStringList& line, const XpWriterContex

// Start an apron record
numApron++;

Surface surface = static_cast<Surface>(at(line, p::SURFACE).toInt());
insertApronQuery->bindValue(":apron_id", ++curApronId);
insertApronQuery->bindValue(":airport_id", curAirportId);
insertApronQuery->bindValue(":is_draw_surface", 1);
insertApronQuery->bindValue(":is_draw_surface", surface != TRANSPARENT);
insertApronQuery->bindValue(":is_draw_detail", 1);
insertApronQuery->bindValue(":surface", surfaceToDb(static_cast<Surface>(at(line, p::SURFACE).toInt()), &context));
insertApronQuery->bindValue(":surface", surfaceToDb(surface, &context));
}

void XpAirportWriter::bindPavementNode(const QStringList& line, atools::fs::xp::AirportRowCode rowCode,
Expand Down

0 comments on commit 399e739

Please sign in to comment.