Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit db4987f

Browse files
committed
Minor efficiency improvement.
svn path=/branches/transforms/; revision=4778
1 parent 4ce0975 commit db4987f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/_backend_agg.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,9 @@ bool should_snap(Path& path, const agg::trans_affine& trans) {
363363
double x0, y0, x1, y1;
364364
unsigned code;
365365

366+
if (path.total_vertices() > 15)
367+
return false;
368+
366369
code = path.vertex(&x0, &y0);
367370
trans.transform(&x0, &y0);
368371

0 commit comments

Comments
 (0)