diff --git a/Arrangement_on_surface_2/include/CGAL/Sweep_line_2/Sweep_line_2_debug.h b/Arrangement_on_surface_2/include/CGAL/Sweep_line_2/Sweep_line_2_debug.h index 94c6d8a4946..a47d138a437 100644 --- a/Arrangement_on_surface_2/include/CGAL/Sweep_line_2/Sweep_line_2_debug.h +++ b/Arrangement_on_surface_2/include/CGAL/Sweep_line_2/Sweep_line_2_debug.h @@ -38,9 +38,8 @@ void Basic_sweep_line_2::PrintEventQueue() Event_queue_iterator iter = m_queue->begin(); while ( iter != m_queue->end() ) { - CGAL_SL_DEBUG(std::cout << "Point (" << iter->first << ")" << std::endl;) - Event *e = iter->second; - e->Print(); + Event *e = *iter; + e->Print(); ++iter; } CGAL_SL_DEBUG(std::cout << "--------------------------------" << std::endl;)