[Top][All Lists]

[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


                 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



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:
but am not sure exactly how.


Reply to this item at:


  Message sent via Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]