]> git.mxchange.org Git - flightgear.git/commitdiff
Jon Berndt:
authorehofman <ehofman>
Wed, 22 Mar 2006 13:32:32 +0000 (13:32 +0000)
committerehofman <ehofman>
Wed, 22 Mar 2006 13:32:32 +0000 (13:32 +0000)
I had inadvertently terminated a data line when reaching a tab character after
initial data was supplied. I tested the lightning file and it now appears to
read in correctly.

src/FDM/JSBSim/input_output/FGXMLElement.cpp

index 027e2608b9506fc9e83445fee19ead5de466ecba..5b19704412309d9bc2083235d1ed80937ddf759c 100755 (executable)
@@ -407,12 +407,9 @@ void Element::AddAttribute(string name, string value)
 
 void Element::AddData(string d)
 {
-  int string_end=-1;
   int string_start = d.find_first_not_of(" \t");
   if (string_start > 0) {
     d.erase(0,string_start);
-    string_end = d.find_first_of(" \t");
-    if (string_end > 0) d.erase(string_end,d.size()-string_end);
   }
   data_lines.push_back(d);
 }