diff widgets/PropertyStack.cpp @ 922:26da827e8fb5 tonioni

Merge from cxx11 branch
author Chris Cannam
date Mon, 23 Mar 2015 11:26:28 +0000
parents 4a578a360011
children 8744bb5d9fd0
line wrap: on
line diff
--- a/widgets/PropertyStack.cpp	Mon Mar 23 10:04:51 2015 +0000
+++ b/widgets/PropertyStack.cpp	Mon Mar 23 11:26:28 2015 +0000
@@ -172,7 +172,7 @@
     // remain in the same order. So we must find this container in the
     // box list, not in the view.
 
-    for (size_t i = 0; i < m_boxes.size(); ++i) {
+    for (int i = 0; in_range_for(m_boxes, i); ++i) {
 	PropertyContainer *container = m_boxes[i]->getContainer();
 	if (pc == container) {
             return i;