octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #45988] menu function eturns 1 when no choice


From: Andreas Weber
Subject: [Octave-bug-tracker] [bug #45988] menu function eturns 1 when no choice
Date: Fri, 18 Sep 2015 13:14:04 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0 Iceweasel/38.2.1

Follow-up Comment #1, bug #45988 (project octave):

I think menu should indeed return 0 if the user hits cancel (see Matlab
documentation).

This seems like a bug in line 61
http://hg.savannah.gnu.org/hgweb/octave/file/ff904ae0285b/scripts/miscellaneous/menu.m#l61

which should IMHO be

    if (! ok)
      choice = 1;
    endif


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?45988>

_______________________________________________
  Nachricht gesendet von/durch Savannah
  http://savannah.gnu.org/




reply via email to

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