Address cppcheck warning

This commit is contained in:
jpirnay
2026-05-12 09:53:15 +02:00
parent d44c47cfd6
commit 85a5adbcf9
+2 -2
View File
@@ -112,8 +112,8 @@ bool computePageDynamicYBand(const Page& page, const GfxRenderer& renderer, cons
for (const auto& el : page.elements) {
if (!el) continue;
int elementTop = el->yPos;
int elementBottom = el->yPos;
const int elementTop = el->yPos;
int elementBottom = elementTop;
switch (el->getTag()) {
case TAG_PageLine:
elementBottom = el->yPos + lineHeight;