]> git.mxchange.org Git - flightgear.git/commitdiff
Use fgGetBool to assign a boolean variable
authorehofman <ehofman>
Fri, 23 Jan 2004 09:46:56 +0000 (09:46 +0000)
committerehofman <ehofman>
Fri, 23 Jan 2004 09:46:56 +0000 (09:46 +0000)
src/Cockpit/panel_io.cxx

index 86e01b758c88b56f4dc9433b62861273b305a4dc..64641b5f74c8f4db7aa569848e63216fe1644f74 100644 (file)
@@ -366,7 +366,7 @@ readTextChunk (const SGPropertyNode * node)
     string propName = node->getStringValue("property");
     float scale = node->getFloatValue("scale", 1.0);
     float offset = node->getFloatValue("offset", 0.0);
-    bool truncation = node->getFloatValue("truncate", false);
+    bool truncation = node->getBoolValue("truncate", false);
     SGPropertyNode * target = fgGetNode(propName.c_str(), true);
     chunk = new FGTextLayer::Chunk(FGTextLayer::DOUBLE_VALUE, target,
                                   format, scale, offset, truncation);