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:
Panagiotis Cheilaris 2012-07-26 20:05:26 +03:00
parent d2ccbc59c3
commit c9facea91b
1 changed files with 4 additions and 0 deletions

View File

@ -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