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

Skip to content

Commit 56e2420

Browse files
committed
Fix mistake
1 parent f006189 commit 56e2420

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_path.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@ clip_path_to_rect(PathIterator &path, agg::rect_d &rect, bool inside, std::vecto
689689
template <class VerticesArray, class ResultArray>
690690
void affine_transform_2d(VerticesArray &vertices, agg::trans_affine &trans, ResultArray &result)
691691
{
692-
if (vertices.dim(0) != 1 && vertices.dim(1) != 2) {
692+
if (vertices.dim(0) != 0 && vertices.dim(1) != 2) {
693693
throw "Invalid vertices array.";
694694
}
695695

0 commit comments

Comments
 (0)