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

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

[Octave-bug-tracker] [bug #35292] FLTK plot figure crashes when using ri


From: Doug Stewart
Subject: [Octave-bug-tracker] [bug #35292] FLTK plot figure crashes when using right-mouse zoom and logarithmic axes
Date: Thu, 02 Feb 2012 03:12:52 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.215 Safari/534.10

Follow-up Comment #18, bug #35292 (project octave):

in graphics.cc in the area of line 5949 we have

if (is_logscale && ! (xisinf (hi) || xisinf (lo)))
    {
      // FIXME - what if (hi-lo) < tick_sep?
      //         ex: loglog ([1 1.1])
      tick_sep = std::max (tick_sep, 1.);
      tick_sep = std::ceil (tick_sep);
    }
farther down we have:
 Matrix tmp_mticks (1, n * (tmp_ticks.numel () - 1));
when it crashes tmp_ticks.numel ()  is zero
and therefore it tries to make an array with dim (1,-7).

It seem to be when the x range is less than 1 log cycle
so the fixme  likely needs fixing.

I will look at it more, but just wanted to document where the problem is.


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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