Changeset 448 for trunk


Ignore:
Timestamp:
May 3, 2010, 12:04:07 PM (11 years ago)
Author:
Silvan Scherrer
Message:

forgot some fix to ticket:185

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Lucide/gui/lucide.cpp

    r447 r448  
    218218    delete pgfrm;
    219219    WinSetDlgItemText( hToolBar, TBID_OFPAGES, pgnum );
     220
     221    // if pages are 0 also set limits to 0
     222    long pageLimit = (pages >= 1 ? 1:0);
    220223    WinSendDlgItemMsg( hToolBar, TBID_PAGENUM, SPBM_SETLIMITS,
    221                        MPFROMLONG( pages ), MPFROMLONG( 1 ) );
     224                       MPFROMLONG( pages ), MPFROMLONG( pageLimit ) );
    222225}
    223226
     
    447450    // clear the index
    448451    indexWin->clear( NULL );
     452
    449453    return true;
    450454}
Note: See TracChangeset for help on using the changeset viewer.