summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Watkins <amaranth@ubuntu.com>2009-01-21 02:36:10 -0600
committerTravis Watkins <travis@ronin.(none)>2009-01-21 02:36:10 -0600
commit0cfa4b3b32594f7d5d96b1a4facb27e29b493338 (patch)
tree07122e32f6dc938b213fb55c24901cb99447f57b
parent50739fc0172448e4aed1c3417e46c57eb77c16cc (diff)
downloadautoresize-0cfa4b3b32594f7d5d96b1a4facb27e29b493338.tar.gz
autoresize-0cfa4b3b32594f7d5d96b1a4facb27e29b493338.tar.bz2
fix infinite loop
-rw-r--r--snap.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/snap.cpp b/snap.cpp
index 425f31f..5fa958b 100644
--- a/snap.cpp
+++ b/snap.cpp
@@ -192,7 +192,7 @@ SnapWindow::updateWindowsEdges ()
// can't use foreach here because we need the iterator for erase()
for (std::list<Edge *>::iterator it = edges.begin ();
- it != edges.end ();)
+ it != edges.end (); it++)
{
Edge *e = *it;
if (!e->passed)
@@ -274,7 +274,7 @@ SnapWindow::updateScreenEdges ()
continue;
for (std::list<Edge *>::iterator it = edges.begin ();
- it != edges.end ();)
+ it != edges.end (); it++)
{
Edge *e = *it;
if (!e->screenEdge)