Ticket #86: placement-invalid.patch
| File placement-invalid.patch, 1.1 kB (added by jburgess, 8 months ago) |
|---|
-
src/placement_finder.cpp
561 561 double dy = new_y - old_y; 562 562 563 563 double segment_length = path_distances[index]; 564 if (segment_length == 0) { 565 // Not allowed to place across on 0 length segments or discontinuities 566 return std::auto_ptr<placement_element>(NULL); 567 } 564 568 565 569 current_placement->starting_x = old_x + dx*distance/segment_length; 566 570 current_placement->starting_y = old_y + dy*distance/segment_length; … … 584 588 c = ci.character; 585 589 586 590 //Coordinates this character will start at 591 if (segment_length == 0) { 592 // Not allowed to place across on 0 length segments or discontinuities 593 return std::auto_ptr<placement_element>(NULL); 594 } 587 595 double start_x = old_x + dx*distance/segment_length; 588 596 double start_y = old_y + dy*distance/segment_length; 589 597 //Coordinates this character ends at, calculated below
