changeset 19108:43f50a269cbc

Fix error message when trying to set a non-existent graphics property. * libinterp/genprops.awk: fix copy paste error
author Pantxo Diribarne <pantxo.diribarne@gmail.com>
date Wed, 10 Sep 2014 00:11:57 +0200
parents ec1e295402fa
children 429ed2f2e8c6
files libinterp/genprops.awk
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/genprops.awk	Mon Sep 08 12:05:37 2014 -0400
+++ b/libinterp/genprops.awk	Wed Sep 10 00:11:57 2014 +0200
@@ -470,7 +470,7 @@
               class_name);
 
     if (! base)
-        printf ("  const std::set<std::string>& pnames = all_property_names ();\n\n  caseless_str pname = validate_property_name (\"get\", go_name, pnames, pname_arg);\n\n  if (error_state)\n    return;\n  else if (has_readonly_property (pname))\n    {\n      error (\"set: \\\"%%s\\\" is read-only\", pname.c_str ());\n      return;\n    }\n\n");
+        printf ("  const std::set<std::string>& pnames = all_property_names ();\n\n  caseless_str pname = validate_property_name (\"set\", go_name, pnames, pname_arg);\n\n  if (error_state)\n    return;\n  else if (has_readonly_property (pname))\n    {\n      error (\"set: \\\"%%s\\\" is read-only\", pname.c_str ());\n      return;\n    }\n\n");
 
     first = 1;