mirror of https://github.com/CGAL/cgal
fix warning in Vertex_conflict_C2 with otherpnt
This commit is contained in:
parent
142414c123
commit
5b413d92a4
|
|
@ -431,16 +431,8 @@ private:
|
|||
Segment_2 seg = q.segment();
|
||||
|
||||
if (is_same_qsrc_p || is_same_qtrg_p) {
|
||||
Point_2 otherpnt;
|
||||
if (is_same_qsrc_p) {
|
||||
otherpnt = seg.target();
|
||||
} else if (is_same_qtrg_p) {
|
||||
otherpnt = seg.source();
|
||||
} else {
|
||||
// unreachable
|
||||
CGAL_assertion( false );
|
||||
}
|
||||
|
||||
const Point_2 otherpnt =
|
||||
is_same_qsrc_p ? seg.target() : seg.source();
|
||||
lhor = compute_horizontal_side_line(
|
||||
pnt, otherpnt,
|
||||
is_positive_slope ?
|
||||
|
|
|
|||
Loading…
Reference in New Issue