From 792ff477beac2efb11f1bc48ca7a19811c8232c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Sch=C3=B6berl?= Date: Wed, 28 Jun 2017 00:16:56 +0200 Subject: [PATCH] respect 2nd order segment when exporting neutral format --- libsrc/interface/writeuser.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libsrc/interface/writeuser.cpp b/libsrc/interface/writeuser.cpp index 6aa5754e..cafe38ae 100644 --- a/libsrc/interface/writeuser.cpp +++ b/libsrc/interface/writeuser.cpp @@ -250,7 +250,11 @@ void WriteNeutralFormat (const Mesh & mesh, outfile << " "; outfile.width(8); outfile << seg[1]; - + if (seg[2] != -1) + { + outfile.width(8); + outfile << seg[2]; + } outfile << "\n"; } }