changeset 23112:1b2525cdd110

Make property in set() with two arguments case-insensitive (bug #50163). * graphics.cc (Fset): Convert property string to lower-case before matching.
author Markus Mützel <markus.muetzel@gmx.de>
date Sat, 28 Jan 2017 18:31:43 -0800
parents 252975fdc444
children 9241a0fa7873
files libinterp/corefcn/graphics.cc
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/graphics.cc	Sat Jan 28 15:19:42 2017 -0500
+++ b/libinterp/corefcn/graphics.cc	Sat Jan 28 18:31:43 2017 -0800
@@ -10304,6 +10304,8 @@
       else if (nargin == 2 && args(1).is_string ())
         {
           std::string property = args(1).string_value ();
+          std::transform (property.begin (), property.end (),
+                          property.begin (), tolower);
 
           octave_map pmap = go.values_as_struct ();