From 73f07b75067f799f943ddde636074711b20fe417 Mon Sep 17 00:00:00 2001
From: Christian Schmitt <chris@ilovelinux.de>
Date: Wed, 20 Mar 2013 12:49:36 +0100
Subject: [PATCH] Reset state machine to "simple" after closing a bezier curve.
 Fixes a segfault at LFPG.

---
 src/Airports/GenAirports850/parser.cxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Airports/GenAirports850/parser.cxx b/src/Airports/GenAirports850/parser.cxx
index 1ba73e7f..ef12669e 100644
--- a/src/Airports/GenAirports850/parser.cxx
+++ b/src/Airports/GenAirports850/parser.cxx
@@ -659,8 +659,8 @@ int Parser::ParseLine(char* line)
                             cur_airport->AddFeature( cur_feat );
                         }
                         cur_feat = NULL;
-                        SetState( STATE_PARSE_SIMPLE );
                     }
+                    SetState( STATE_PARSE_SIMPLE );
                     prev_node = NULL;
                     cur_node  = NULL;
                     break;