Fix FListBox prevListItem()
This commit is contained in:
parent
c96af1d3a2
commit
7a2abc9421
|
@ -1,5 +1,6 @@
|
|||
2018-10-29 Markus Gans <guru.mail@muenster.de>
|
||||
* FTerm is now a data member of FVTerm
|
||||
* Fix FListBox prevListItem()
|
||||
|
||||
2018-10-26 Markus Gans <guru.mail@muenster.de>
|
||||
* Building Fix for a negative value check (gcc < 4.8)
|
||||
|
|
|
@ -1532,10 +1532,10 @@ void FListBox::prevListItem (int distance)
|
|||
if ( current == 1 )
|
||||
return;
|
||||
|
||||
current -= std::size_t(distance);
|
||||
|
||||
if ( current < 1 )
|
||||
if ( current < std::size_t(distance) )
|
||||
current = 1;
|
||||
else
|
||||
current -= std::size_t(distance);
|
||||
|
||||
if ( current <= std::size_t(yoffset) )
|
||||
{
|
||||
|
|
|
@ -1951,7 +1951,9 @@ void FVTerm::flush_out()
|
|||
{
|
||||
while ( ! output_buffer->empty() )
|
||||
{
|
||||
fterm->Fputchar (output_buffer->front());
|
||||
if ( fterm )
|
||||
fterm->Fputchar(output_buffer->front());
|
||||
|
||||
output_buffer->pop();
|
||||
}
|
||||
|
||||
|
|
|
@ -143,9 +143,9 @@ class FVTerm
|
|||
|
||||
// Mutators
|
||||
void setTermXY (int, int);
|
||||
static void hideCursor (bool);
|
||||
static void hideCursor();
|
||||
static void showCursor();
|
||||
void hideCursor (bool);
|
||||
void hideCursor();
|
||||
void showCursor();
|
||||
void setPrintCursor (const FPoint&);
|
||||
void setPrintCursor (int, int);
|
||||
void setColor (short, short);
|
||||
|
|
Loading…
Reference in New Issue