Skip to content

Commit

Permalink
lvrend: fix compiler / cppcheck warning (maybe-uninitialized) (#590)
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit-pierre authored Jul 28, 2024
1 parent 4e7bb07 commit 5037c1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crengine/src/lvrend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10246,7 +10246,7 @@ void DrawDocument( LVDrawBuf & drawbuf, ldomNode * enode, int x0, int y0, int dx
// printf("Starting 2-steps drawing at %d %s\n", cfmt.getY(),
// UnicodeToLocal(ldomXPointer(child, 0).toString()).c_str());
int overflow_y = cfmt.getY() + cfmt.getHeight() + cfmt.getBottomOverflow();
int last_two_steps_drawn_node;
int last_two_steps_drawn_node = i;
for (int j=i; j<cnt; j++) {
last_two_steps_drawn_node = j;
child = enode->getChildNode( j );
Expand Down

0 comments on commit 5037c1c

Please sign in to comment.