diff libinterp/octave-value/ov-base.h @ 24657:dd19b0b9a9a1

allow empty strings to be edited (bug #51848) * variable-editor-model.cc (get_rows_and_columns, variable_editor_model::impl, variable_editor_model::type_is_editable): Also allow empty strings. * ov-base.h (octave_base_value::is_zero_by_zero): New function. * ov-str-mat.cc (octave_char_matrix_str::edit_display): Allow empty strings.
author John W. Eaton <jwe@octave.org>
date Tue, 30 Jan 2018 22:50:09 -0500
parents 78aff6f14227
children d4dd741b2794
line wrap: on
line diff
--- a/libinterp/octave-value/ov-base.h	Wed Jan 31 01:38:53 2018 +0100
+++ b/libinterp/octave-value/ov-base.h	Tue Jan 30 22:50:09 2018 -0500
@@ -357,6 +357,8 @@
 
   bool isempty (void) const { return (dims ().any_zero ()); }
 
+  bool is_zero_by_zero (void) const { return dims().zero_by_zero (); }
+
   virtual bool iscell (void) const { return false; }
 
   virtual bool iscellstr (void) const { return false; }