Skip to content

Commit

Permalink
fix for build on ubuntu 20
Browse files Browse the repository at this point in the history
  • Loading branch information
krupkat committed Jan 2, 2024
1 parent 85d02e9 commit b333eb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xpano/gui/panels/preview_pane.cc
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ float ComputeRoll(const utils::Point2f& mouse_start,
auto y = mouse_end - center;

auto angle =
std::atan2f(x[0] * y[1] - x[1] * y[0], x[0] * y[0] + y[1] * y[1]);
std::atan2(x[0] * y[1] - x[1] * y[0], x[0] * y[0] + y[1] * y[1]);

return start + angle;
}
Expand Down

0 comments on commit b333eb9

Please sign in to comment.