Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
75722075
Commit
75722075
authored
May 22, 1999
by
Paul Quinn
Committed by
Alexandre Julliard
May 22, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stop a listbox bug that causes a div by zero when the item height
is zero. Doesn't solve the root of the problem though.
parent
594d5dd7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
listbox.c
controls/listbox.c
+2
-1
No files found.
controls/listbox.c
View file @
75722075
...
...
@@ -297,7 +297,8 @@ static void LISTBOX_UpdatePage( WND *wnd, LB_DESCR *descr )
{
INT
page_size
;
if
((
page_size
=
descr
->
height
/
descr
->
item_height
)
<
1
)
page_size
=
1
;
if
((
descr
->
item_height
==
0
)
||
(
page_size
=
descr
->
height
/
descr
->
item_height
)
<
1
)
page_size
=
1
;
if
(
page_size
==
descr
->
page_size
)
return
;
descr
->
page_size
=
page_size
;
if
(
descr
->
style
&
LBS_MULTICOLUMN
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment