From 02cf3373d5a20f716b4e7b33a622cbe4c197a56a Mon Sep 17 00:00:00 2001 From: ehofman Date: Fri, 23 Jan 2004 09:46:56 +0000 Subject: [PATCH] Use fgGetBool to assign a boolean variable --- src/Cockpit/panel_io.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cockpit/panel_io.cxx b/src/Cockpit/panel_io.cxx index 86e01b758..64641b5f7 100644 --- a/src/Cockpit/panel_io.cxx +++ b/src/Cockpit/panel_io.cxx @@ -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); -- 2.39.5