Created
March 13, 2013 22:18
-
-
Save springmeyer/5156913 to your computer and use it in GitHub Desktop.
remove inner loop in find_line_placements
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/placement_finder.cpp b/src/placement_finder.cpp | |
index 204297f..8e10b57 100644 | |
--- a/src/placement_finder.cpp | |
+++ b/src/placement_finder.cpp | |
@@ -637,11 +637,11 @@ void placement_finder<DetectorT>::find_line_placements(PathT & shape_path) | |
{ | |
for (double diff = 0; diff < tolerance; diff += tolerance_delta) | |
{ | |
- for(int dir = -1; dir < 2; dir+=2) //-1, +1 | |
- { | |
+ //for(int dir = -1; dir < 2; dir+=2) //-1, +1 | |
+ //{ | |
//Record details for the start of the string placement | |
int orientation = 0; | |
- std::auto_ptr<text_path> current_placement = get_placement_offset(path_positions, path_distances, orientation, index, seg | |
+ std::auto_ptr<text_path> current_placement = get_placement_offset(path_positions, path_distances, orientation, index, seg | |
//We were unable to place here | |
if (current_placement.get() == NULL) | |
@@ -697,7 +697,7 @@ void placement_finder<DetectorT>::find_line_placements(PathT & shape_path) | |
//Don't need to loop twice when diff = 0 | |
if (diff == 0) | |
break; | |
- } | |
+ //} | |
} | |
distance -= target_distance; //Consume the spacing gap we have used up |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment