diff host/libcdl/value.cxx @ 108:ff3f181b64bd ecos-sw-2000-07-04

Merge from eCos master repository on 2000-07-04-20:42:44-BST
author jlarmour
date Tue, 04 Jul 2000 20:17:21 +0000
parents 5a0cc6c243a9
children 6ed91473a1cd
line wrap: on
line diff
--- a/host/libcdl/value.cxx
+++ b/host/libcdl/value.cxx
@@ -3790,10 +3790,10 @@ CdlValuableBody::save(CdlInterpreter int
             data += indent_string + "# Calculated value: " +
                 CdlInterpreterBody::extend_comment(expr->get_original_string(), indentation, 4) + '\n';
             data += CdlInterpreterBody::multiline_comment(follow_expr_references(expr, expr), indentation, 4);
-        } else {
+        } else if (!modifiable) {
             data += indent_string + "# This value cannot be modified here.\n";
         }
-        
+         
         // Output the flavor. This clutters up the savefile a bit.
         // However it is necessary so that the user can distinguish
         // between bool, booldata and data items