From 399e7394d87253940de7c75228141423de4dec6a Mon Sep 17 00:00:00 2001 From: Alexander Barthel Date: Sat, 20 Jul 2019 21:23:28 +0200 Subject: [PATCH] Fixed display flags for transparent aprons in X-Plane. --- src/fs/xp/xpairportwriter.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/fs/xp/xpairportwriter.cpp b/src/fs/xp/xpairportwriter.cpp index 6a0d7e05..0515b9c1 100644 --- a/src/fs/xp/xpairportwriter.cpp +++ b/src/fs/xp/xpairportwriter.cpp @@ -480,11 +480,13 @@ void XpAirportWriter::bindPavement(const QStringList& line, const XpWriterContex // Start an apron record numApron++; + + Surface surface = static_cast(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(at(line, p::SURFACE).toInt()), &context)); + insertApronQuery->bindValue(":surface", surfaceToDb(surface, &context)); } void XpAirportWriter::bindPavementNode(const QStringList& line, atools::fs::xp::AirportRowCode rowCode,