Remove compilation warnings: suggest parentheses around operand of ‘!’ or change ‘&’ to ‘&&’
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11701 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
f428d0077d
commit
d3402eaa85
@ -481,8 +481,8 @@ void Fl_Table::recalc_dimensions() {
|
||||
int hideh = (table_w <= tiw);
|
||||
int scrollsize = _scrollbar_size ? _scrollbar_size : Fl::scrollbar_size();
|
||||
// Second pass: Check for interference
|
||||
if ( !hideh & hidev ) { hidev = (( table_h - tih + scrollsize ) <= 0 ); }
|
||||
if ( !hidev & hideh ) { hideh = (( table_w - tiw + scrollsize ) <= 0 ); }
|
||||
if ( !hideh && hidev ) { hidev = (( table_h - tih + scrollsize ) <= 0 ); }
|
||||
if ( !hidev && hideh ) { hideh = (( table_w - tiw + scrollsize ) <= 0 ); }
|
||||
// Determine scrollbar visibility, trim ti[xywh]/to[xywh]
|
||||
if ( hidev ) { vscrollbar->hide(); }
|
||||
else { vscrollbar->show(); tiw -= scrollsize; tow -= scrollsize; }
|
||||
|
Loading…
Reference in New Issue
Block a user