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:
François Gannaz 2019-04-03 22:43:27 +02:00 committed by Felix Kauselmann
parent 764c945eff
commit 35bb3b553f

View File

@ -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()