2020-01-31 15:34 UTC+0100 Aleksander Czajczynski (hb fki.pl)
* src/rtl/listbox.prg
! fix listbox scroll bar position calculation to not rely on
default Cl*pper compatible division by zero error handler.
Thanks to tarpauwatratar for the report and fix suggestion
on the developers list.
* contrib/hbdoc/hbdoc.prg
* contrib/hbformat/utils/hbformat.prg
* contrib/hbnetio/utils/hbnetio/hbnetio.prg
* package/harbour.mft
* package/harbour.rc
* src/compiler/hbusage.c
* utils/hbi18n/hbi18n.prg
* utils/hbtest/hbtest.prg
* bumped copyright year to 2020
* ChangeLog.txt
* function name typo + file case corrected
This commit is contained in:
@@ -261,7 +261,7 @@ void hb_compPrintLogo( HB_COMP_DECL )
|
||||
{
|
||||
char * szVer = hb_verHarbour();
|
||||
|
||||
#define HB_VER_COMMIT_YEAR "2019"
|
||||
#define HB_VER_COMMIT_YEAR "2020"
|
||||
#define HB_VER_ORIGIN_URL "https://harbour.github.io/"
|
||||
|
||||
hb_compOutStd( HB_COMP_PARAM, szVer );
|
||||
|
||||
@@ -829,6 +829,12 @@ METHOD scrollbarPos() CLASS ListBox
|
||||
LOCAL nCount := ::nItemCount
|
||||
LOCAL nLength := ::oVScroll:barLength
|
||||
|
||||
#ifndef HB_CLP_STRICT
|
||||
/* NOTE: Cl*pper will RTE with non default division by zero error handler */
|
||||
IF nCount == nSize
|
||||
RETURN 0
|
||||
ENDIF
|
||||
#endif
|
||||
RETURN ( ( nCount - nLength ) * ::nTopItem + nLength - nSize ) / ( nCount - nSize )
|
||||
|
||||
/* --- */
|
||||
|
||||
Reference in New Issue
Block a user