#2643: d.vect png with icon=basic/circle and long paths segfaults
----------------------+-----------------------------------------------------
 Reporter:  pertusus  |       Owner:  grass-dev@…              
     Type:  defect    |      Status:  new                      
 Priority:  major     |   Milestone:  7.0.1                    
Component:  Display   |     Version:  svn-releasebranch70      
 Keywords:            |    Platform:  Linux                    
      Cpu:  x86-64    |  
----------------------+-----------------------------------------------------

Comment(by neteler):

 Replying to [comment:4 glynn]:
 > IOW, this case only occurs when x1==x2 AND y1==y2, i.e. both endpoints
 are identical.
 >
 > It should suffice to add
 >
 > {{{
 >     if (x1 == x2 && y1 == y2)
 >         return;
 > }}}
 >
 > to the start of that function.
 >
 > Although it's possible that if both differences are very close to zero

 What about comparing the differences against GRASS_EPSILON?

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/2643#comment:5>
GRASS GIS <http://grass.osgeo.org>

_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to