Skip to content

Commit

Permalink
Add const qualifier to multiply and divide operators for agg_trans_af…
Browse files Browse the repository at this point in the history
…fine/perspective

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
  • Loading branch information
MtnViewJohn authored and waddlesplash committed Mar 8, 2017
1 parent 58916d4 commit cb743de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions headers/libs/agg/agg_trans_affine.h
Expand Up @@ -195,14 +195,14 @@ namespace agg

// Multiply current matrix to another one and return
// the result in a separete matrix.
trans_affine operator * (const trans_affine& m)
trans_affine operator * (const trans_affine& m) const
{
return trans_affine(*this).multiply(m);
}

// Multiply current matrix to inverse of another one
// and return the result in a separete matrix.
trans_affine operator / (const trans_affine& m)
trans_affine operator / (const trans_affine& m) const
{
return trans_affine(*this).multiply_inv(m);
}
Expand Down

0 comments on commit cb743de

Please sign in to comment.