mirror of
https://github.com/YACReader/yacreader
synced 2025-06-03 09:08:20 -04:00
bug: 'else' without braces but several lines indented (#41)
* bug: 'else' without braces but several lines indented * always set previousIndex in Render::updateBuffer() As discussed in #41, the previous index was meant to be updated in every case, but the faulty indentation suggested another behavior.
This commit is contained in:
parent
764c945eff
commit
35bb3b553f
@ -1035,6 +1035,7 @@ void Render::updateBuffer()
|
||||
}
|
||||
}
|
||||
else //add pages to left pages and remove on the right
|
||||
{
|
||||
if(windowSize<0)
|
||||
{
|
||||
windowSize = -windowSize;
|
||||
@ -1059,7 +1060,8 @@ void Render::updateBuffer()
|
||||
buffer.pop_back();
|
||||
}
|
||||
}
|
||||
previousIndex = currentIndex;
|
||||
}
|
||||
previousIndex = currentIndex;
|
||||
}
|
||||
|
||||
void Render::fillBuffer()
|
||||
|
Loading…
x
Reference in New Issue
Block a user