mirror of https://github.com/CGAL/cgal
bugfix in sps case of Vertex_conflict_C2.h
Again pnt_on_seg was used without initialization in some cases.
This commit is contained in:
parent
d2ccbc59c3
commit
c9facea91b
|
|
@ -868,6 +868,7 @@ private:
|
|||
Point_2 pnt_on_seg;
|
||||
|
||||
if (is_same_psrc_q or is_same_ptrg_q) {
|
||||
pnt_on_seg = pnt;
|
||||
Point_2 otherpnt;
|
||||
if (is_same_psrc_q) {
|
||||
otherpnt = seg.target();
|
||||
|
|
@ -976,6 +977,9 @@ private:
|
|||
|
||||
// here p and t have common endpoint testp
|
||||
|
||||
std::cout << "debug testp=" << testp << " pnt="
|
||||
<< pnt << " pnt_on_seg=" << pnt_on_seg << std::endl;
|
||||
|
||||
// check if testp equals pnt_on_seg
|
||||
|
||||
if ((cmpx(testp, pnt_on_seg) == EQUAL ) and
|
||||
|
|
|
|||
Loading…
Reference in New Issue