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
5ce31867
Commit
5ce31867
authored
Apr 25, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Apr 26, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Return if there's no current selection in TAB_EnsureSelectionVisible().
parent
d16bed15
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
tab.c
dlls/comctl32/tab.c
+4
-1
No files found.
dlls/comctl32/tab.c
View file @
5ce31867
...
...
@@ -2440,6 +2440,9 @@ static void TAB_EnsureSelectionVisible(
INT
iSelected
=
infoPtr
->
iSelected
;
INT
iOrigLeftmostVisible
=
infoPtr
->
leftmostVisible
;
if
(
iSelected
<
0
)
return
;
/* set the items row to the bottommost row or topmost row depending on
* style */
if
((
infoPtr
->
uNumRows
>
1
)
&&
!
(
infoPtr
->
dwStyle
&
TCS_BUTTONS
))
...
...
@@ -2504,7 +2507,7 @@ static void TAB_EnsureSelectionVisible(
if
(
infoPtr
->
leftmostVisible
>=
iSelected
)
{
i
f
(
iSelected
>=
0
)
i
nfoPtr
->
leftmostVisible
=
iSelected
;
infoPtr
->
leftmostVisible
=
iSelected
;
}
else
{
...
...
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