Skip to content

Commit 44cb8f7

Browse files
authored
internal: added error log when getEdgeDefinedPoint is impossible (#10462)
1 parent 705b97c commit 44cb8f7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/render/decorations/DecorationPositioner.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ Vector2D CDecorationPositioner::getEdgeDefinedPoint(uint32_t edges, PHLWINDOW pW
4242
return wb.pos() + Vector2D{0.0, wb.size().y / 2.0};
4343
else if (RIGHT)
4444
return wb.pos() + Vector2D{wb.size().x, wb.size().y / 2.0};
45-
UNREACHABLE();
4645
} else {
4746
if (TOP && LEFT)
4847
return wb.pos();
@@ -52,9 +51,8 @@ Vector2D CDecorationPositioner::getEdgeDefinedPoint(uint32_t edges, PHLWINDOW pW
5251
return wb.pos() + wb.size();
5352
if (BOTTOM && LEFT)
5453
return wb.pos() + Vector2D{0.0, wb.size().y};
55-
UNREACHABLE();
5654
}
57-
UNREACHABLE();
55+
Debug::log(ERR, "getEdgeDefinedPoint: invalid configuration of edges");
5856
return {};
5957
}
6058

0 commit comments

Comments
 (0)