[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #54918] uicontrol: validation of cdata propert
From: |
Guillaume |
Subject: |
[Octave-bug-tracker] [bug #54918] uicontrol: validation of cdata property |
Date: |
Tue, 30 Oct 2018 11:10:58 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0 |
URL:
<https://savannah.gnu.org/bugs/?54918>
Summary: uicontrol: validation of cdata property
Project: GNU Octave
Submitted by: gyom
Submitted on: Tue 30 Oct 2018 03:10:57 PM UTC
Category: Plotting with OpenGL
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Unexpected Error
Status: None
Assigned to: None
Originator Name: Guillaume
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: Any
_______________________________________________________
Details:
It seems that the validation of an uicontrol cdata property is a bit too tight
as it doesn't allow an empty array []:
>> figure, h = uicontrol ();
>> get (h, "cdata")
ans = [](0x0)
>> set (h, "cdata", [])
error: invalid value for array property "cdata"
>> set (h, "cdata", zeros(0,0,0))
>>
i.e. it does not allow its own default value.
I assume the fix is about changing this line:
http://hg.savannah.gnu.org/hgweb/octave/file/69a160d7ab68/libinterp/corefcn/graphics.in.h#l5476
but am not sure exactly how.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?54918>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #54918] uicontrol: validation of cdata property,
Guillaume <=