Changeset 8589:c58f928722d2 in orange


Ignore:
Timestamp:
08/03/11 14:20:35 (3 years ago)
Author:
Noughmad <Noughmad@…>
Branch:
default
Convert:
ff4dec6f1111bb34c62250a685cc711160c8d3f9
Message:

Prevent a crash when trying to find the nearest point on a plot with no points

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/orangeplot/plot.cpp

    r8588 r8589  
    287287    } 
    288288    Point* point = point_at(closest_point.second); 
    289     if(distance(point->pos(), pos) <= point->size()) 
     289    if(point && distance(point->pos(), pos) <= point->size()) 
    290290    { 
    291291        return point; 
Note: See TracChangeset for help on using the changeset viewer.