[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #54109] error: binary operator '!=' not implem
From: |
John W. Eaton |
Subject: |
[Octave-bug-tracker] [bug #54109] error: binary operator '!=' not implemented for 'cell' by 'scalar' operations |
Date: |
Wed, 13 Jun 2018 02:33:47 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0 |
Update of bug #54109 (project octave):
Status: None => Ready For Test
_______________________________________________________
Follow-up Comment #1:
This regression is due to the recent fix for bug #54067.
After http://hg.savannah.gnu.org/hgweb/octave/rev/1580ceab7f2c, calling text
with only property/value pairs (or no arguments) produces a text object that
has the string property set to a cell array containing one empty string.
Previously, the string property was set to an empty string, not a cell array.
I believe the previous behavior is correct here. I pushed the following
change for that on stable and merged with default:
http://hg.savannah.gnu.org/hgweb/octave/rev/f09f7c7815e3
In debugging this, I also noticed that the error reported here actually occurs
in genpropdoc.m around line 1748. We probably shouldn't use isscalar there
without some other check for data type first. What happens there if the
string property is a single character, for example? I checked in the
following changeset on default for that:
http://hg.savannah.gnu.org/hgweb/octave/rev/26164f8a734a
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?54109>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/