Skip to content

Commit 3309acd

Browse files
committed
Fix swap.
1 parent 251f14e commit 3309acd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/iou.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,10 @@ namespace IOU
181181
p1 = quad.p1; p2 = quad.p2; p3 = quad.p3; p4 = quad.p4; return *this; }
182182

183183
// Methods.
184-
void flip() { swap(p2, p4); }
184+
void flip() {
185+
Point tmp = p2;
186+
p2 = p4;
187+
p4 = tmp; }
185188
void getVertList(Vertexes &_vert) const;
186189
bool haveRepeatVert() const;
187190

0 commit comments

Comments
 (0)