Skip to content

Commit

Permalink
Merge pull request #371 from kamilprzyb2/listbox-fix
Browse files Browse the repository at this point in the history
Fix nTop not being assigned properly in ListBox:hitTest()
  • Loading branch information
FiveTechSoft authored Jan 8, 2025
2 parents c2870ac + 2b6acca commit 56bd635
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 4 additions & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
Entries may not always be in chronological/commit order.
See license at the end of file. */

2025-01-08 13:14 UTC+0100 Kamil Przybylski (kprzybylski quay.pl)
* src/rtl/listbox.prg
! fixed nTop variable not being assigned properly in ListBox:hitTest()

2025-01-07 22:49 UTC+0100 Aleksander Czajczynski (hb fki.pl)
* contrib/hbcurl/hbcurl.ch
* updated HB_CURLOPT_SSL_OPTIONS: HB_CURLSSLOPT_*
Expand Down
3 changes: 1 addition & 2 deletions src/rtl/listbox.prg
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ METHOD getText( nPos ) CLASS ListBox
METHOD hitTest( nMRow, nMCol ) CLASS ListBox

LOCAL nRet
LOCAL nTop
LOCAL nTop := ::nTop
LOCAL nHit := 0

/* Check hit on the scrollbar */
Expand All @@ -411,7 +411,6 @@ METHOD hitTest( nMRow, nMCol ) CLASS ListBox
IF ! ::lIsOpen .OR. Empty( ::cHotBox + ::cColdBox )
nRet := 0
ELSE
nTop := ::nTop
IF ::lDropDown
nTop++
ENDIF
Expand Down

0 comments on commit 56bd635

Please sign in to comment.