Skip to content

Commit

Permalink
Fix code. Update UT.
Browse files Browse the repository at this point in the history
  • Loading branch information
Aliakasndr Dziarkach authored and Aliakasndr Dziarkach committed Nov 14, 2024
1 parent afad93d commit 288b103
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 3 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion core/render2d/src/render_context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1036,7 +1036,7 @@ void RenderContext::drawPlus(const Vec2f& pos, const float linewidth, const floa

void RenderContext::drawHalfEllipse(const Vec2f& v1, const Vec2f& v2, const float height, const bool is_negative)
{
float h = abs(height);
float h = std::fabs(height);
double angle1 = height > 0 ? -M_PI : 0;
double angle2 = height > 0 ? 0 : M_PI;
Vec2f d;
Expand Down
4 changes: 2 additions & 2 deletions utils/indigo-service/backend/service/tests/api/indigo_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1787,8 +1787,8 @@ def test_render_eleptical_arrow(self):
data=data,
)
fname = "render-eleptical-arrow.png"
with open(os.path.join(ref_path, fname), "wb") as file:
file.write(result.content)
# with open(os.path.join(ref_path, fname), "wb") as file:
# file.write(result.content)
with open(os.path.join(ref_path, fname), "rb") as file:
ref = file.read()
self.assertEqual(result.content, ref)
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 288b103

Please sign in to comment.