[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #43017] "text" command does not work with empt
From: |
Hartmut |
Subject: |
[Octave-bug-tracker] [bug #43017] "text" command does not work with empty matrix to indicate empty line |
Date: |
Sat, 26 Sep 2015 19:14:49 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:41.0) Gecko/20100101 Firefox/41.0 |
Follow-up Comment #5, bug #43017 (project octave):
Ooops, yes. Very simple "text" commands like this don't work any more with
this first patch:
close all, text(0.5, 0.5, 'Hello')
It seemFs to me that you try to index a cell array (with curly brackets) in
your patch. This one works fine with your patch for example:
close all, text(0.5, 0.5, {'Hello'})
But single line texts aren't necessarily a cell array :( Plus: Even multi-line
texts can still be a character array. This one should also be preserved to
work (and doesn't with this first patch):
close all, text(0.5, 0.5, ['Hello'; '12345'])
Suggestion: Could you maybe change this patch, such that it starts to look
for emtpy strings (using the cell array indexing, that currently throws an
error) ONLY IF the whole text object is surely a cell array? In all other
cases (i.e. having character arrays) there cannot be an empty line in there
anyways, because array cannot have missing elements! So there is nothing to
fix for those other cases with character arrays.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?43017>
_______________________________________________
Nachricht gesendet von/durch Savannah
http://savannah.gnu.org/