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

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

[Octave-bug-tracker] [bug #50493] datetick crashes on certain date range


From: Lars Kindermann
Subject: [Octave-bug-tracker] [bug #50493] datetick crashes on certain date ranges
Date: Fri, 10 Mar 2017 04:59:11 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0

Follow-up Comment #2, bug #50493 (project octave):

Rik, do not push my changeset yet. Reviewing my fix, I suggest the line



tickdays = ones(size (rangemonth)) + 28 * mod(rangemonth,1);



should better read



tickdays = round (1 + 28 * mod (rangemonth,1));



Otherwise a similar problem may arise in case



sep = __calc_tick_sep__ (minmonth, maxmonth);



does not yield exactly 0.5. Additionally, there are several other locations in
datetick() with a similar construct. They should be checked for possible
problems, too. I'll have a look at this.



    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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