@@ -2979,6 +2979,7 @@ void GdtfGeometryDisplay::OnPrintToFile(IXMLFileNodePtr pNode)
29792979 pNode->SetNodeAttributeValue ( XML_GDTF_DisplayAspectRatio, GdtfConverter::ConvertDouble (fAspectRatio ) );
29802980 pNode->SetNodeAttributeValue ( XML_GDTF_DisplayWidth, GdtfConverter::ConvertInteger (fWidth ) );
29812981 pNode->SetNodeAttributeValue ( XML_GDTF_DisplayHeight, GdtfConverter::ConvertInteger ( fHeight ) );
2982+ pNode->SetNodeAttributeValue ( XML_GDTF_DisplayIsCurved, fIsCurved ? " true" : " false" );
29822983}
29832984
29842985void GdtfGeometryDisplay::OnReadFromNode (const IXMLFileNodePtr& pNode)
@@ -2987,16 +2988,18 @@ void GdtfGeometryDisplay::OnReadFromNode(const IXMLFileNodePtr& pNode)
29872988 // Call the parent
29882989 GdtfGeometry::OnReadFromNode (pNode);
29892990
2990- TXString width, height, aspectRatio = " " ;
2991+ TXString width, height, aspectRatio, isCurved = " " ;
29912992
29922993 pNode->GetNodeAttributeValue ( XML_GDTF_DisplayTexture, fTexture );
29932994 pNode->GetNodeAttributeValue ( XML_GDTF_DisplayAspectRatio, aspectRatio );
29942995 pNode->GetNodeAttributeValue ( XML_GDTF_DisplayWidth, width );
29952996 pNode->GetNodeAttributeValue ( XML_GDTF_DisplayHeight, height );
2997+ pNode->GetNodeAttributeValue ( XML_GDTF_DisplayIsCurved, isCurved );
29962998
2997- GdtfConverter::ConvertInteger ( width, pNode, fWidth );
2998- GdtfConverter::ConvertInteger ( height, pNode, fHeight );
2999- GdtfConverter::ConvertDouble ( aspectRatio, pNode, fAspectRatio );
2999+ GdtfConverter::ConvertInteger ( width, pNode, fWidth );
3000+ GdtfConverter::ConvertInteger ( height, pNode, fHeight );
3001+ GdtfConverter::ConvertDouble ( aspectRatio, pNode, fAspectRatio );
3002+ GdtfConverter::ConvertBool ( isCurved, pNode, fIsCurved );
30003003}
30013004
30023005void GdtfGeometryDisplay::OnErrorCheck (const IXMLFileNodePtr& pNode)
0 commit comments