|
From: | Doug Stewart |
Subject: | [Octave-bug-tracker] [bug #39925] imagesc crash |
Date: | Tue, 22 Oct 2013 18:50:09 +0000 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.101 Safari/537.36 |
Follow-up Comment #26, bug #39925 (project octave): Here is a simple check on the x and y ranges that catches the situation before it becomes a problem (crash) in file image.m at line 148 insert this code: if (diff (x) < 2*eps) error( "ERROR ---> X range is too small") endif if (diff (y) < 2*eps) error( "ERROR ---> Y range is too small") endif If this is an acceptable solution then I can make a hg change set. Should that by just eps or 2*eps? _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?39925> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |