stats: Fix flow-control bug in Vector2D printing
authorAndreas Hansson <andreas.hansson@arm.com>
Fri, 19 Sep 2014 14:35:08 +0000 (10:35 -0400)
committerAndreas Hansson <andreas.hansson@arm.com>
Fri, 19 Sep 2014 14:35:08 +0000 (10:35 -0400)
src/base/stats/text.cc

index 7d25b94e58f6bcb8f2f3fca541ec5beb805b55e1..2c5b004be188857659f2e0fd0a298e6e23f8307b 100644 (file)
@@ -571,8 +571,8 @@ Text::visit(const Vector2dInfo &info)
         for (off_type i = 0; i < info.y; ++i) {
             if (!info.y_subnames[i].empty()) {
                 print.subnames = info.y_subnames;
+                break;
             }
-            break;
         }
     }
     print.flags = info.flags;