changeset 13938:3cb8f1fe108c

Remember the type of uicontrol::string (plain string or cellstr). * src/graphics.h.in (string_array_property::do_set): Update desired_type member according to the type of the new value.
author Michael Goffioul <michael.goffioul@gmail.com>
date Sat, 26 Nov 2011 21:58:27 +0000
parents 1ab3062df1ae
children fc6ebd31f40f
files src/graphics.h.in
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/graphics.h.in	Sat Nov 26 13:08:47 2011 -0500
+++ b/src/graphics.h.in	Sat Nov 26 21:58:27 2011 +0000
@@ -661,6 +661,8 @@
           else
             replace = true;
 
+          desired_type = string_t;
+
           if (replace)
             {
               str = strings;
@@ -690,6 +692,8 @@
                 }
             }
 
+          desired_type = cell_t;
+
           if (replace)
             {
               str = strings;