Skip to content

Commit

Permalink
fix cast
Browse files Browse the repository at this point in the history
  • Loading branch information
asalzburger committed Sep 24, 2024
1 parent 8f7c1ea commit 8771d89
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion meta/include/actsvg/display/geometry.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ svg::object surface(const std::string& id_, const surface_type& s_,
out_left_s_xy = utils::rotate(out_left_s_xy, alpha);

const auto& str = s_._surface_transform.value()._translation;
translation = {str[0], str[1]};
translation = {static_cast<scalar>(str[0]),
static_cast<scalar>(str[1])};
in_left_s_xy = utils::add<point2, 2u>(in_left_s_xy, translation);
in_right_s_xy = utils::add<point2, 2u>(in_right_s_xy, translation);
out_right_s_xy =
Expand Down

0 comments on commit 8771d89

Please sign in to comment.