Linux C++ test & render tests on CI (#1033)

Co-authored-by: rpitre-wetdog <129877142+rpitre-wetdog@users.noreply.github.com>
Co-authored-by: Tadej Novak <tadej@tano.si>
Co-authored-by: Robin <boldtrn@users.noreply.github.com>
Co-authored-by: Siarhei Fedartsou <siarhei.fedartsou@gmail.com>
This commit is contained in:
Bart Louwers
2023-04-22 14:24:42 +02:00
committed by GitHub
parent 33791d5379
commit 453af362cb
14 changed files with 173 additions and 71 deletions

View File

@@ -394,6 +394,8 @@ JointPlacement Placement::placeSymbol(const SymbolInstance& symbolInstance, cons
const size_t anchorsSize = variableTextAnchors.size();
const size_t placementAttempts = ctx.textAllowOverlap ? anchorsSize * 2 : anchorsSize;
for (size_t i = 0u; i < placementAttempts; ++i) {
// when anchorsSize is 0, placementAttempts is also 0, so this code would not be reached
// NOLINTNEXTLINE(clang-analyzer-core.DivideZero)
auto anchor = variableTextAnchors[i % anchorsSize];
const bool allowOverlap = (i >= anchorsSize);
shift = calculateVariableLayoutOffset(anchor,