Address cppcheck warning
This commit is contained in:
@@ -112,8 +112,8 @@ bool computePageDynamicYBand(const Page& page, const GfxRenderer& renderer, cons
|
|||||||
for (const auto& el : page.elements) {
|
for (const auto& el : page.elements) {
|
||||||
if (!el) continue;
|
if (!el) continue;
|
||||||
|
|
||||||
int elementTop = el->yPos;
|
const int elementTop = el->yPos;
|
||||||
int elementBottom = el->yPos;
|
int elementBottom = elementTop;
|
||||||
switch (el->getTag()) {
|
switch (el->getTag()) {
|
||||||
case TAG_PageLine:
|
case TAG_PageLine:
|
||||||
elementBottom = el->yPos + lineHeight;
|
elementBottom = el->yPos + lineHeight;
|
||||||
|
|||||||
Reference in New Issue
Block a user