Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
magicseteditor
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
magicseteditor
Commits
7ecab921
Commit
7ecab921
authored
Jan 06, 2011
by
twanvl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update members of cached dropdown menu, this fixes #13
parent
0e43b833
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
src/gui/value/text.cpp
src/gui/value/text.cpp
+6
-2
No files found.
src/gui/value/text.cpp
View file @
7ecab921
...
@@ -108,7 +108,7 @@ struct DropDownWordListItem {
...
@@ -108,7 +108,7 @@ struct DropDownWordListItem {
WordListWordP
word
;
WordListWordP
word
;
String
name
;
String
name
;
int
flags
;
int
flags
;
DropDownListP
submenu
;
DropDown
Word
ListP
submenu
;
inline
bool
active
()
const
{
return
flags
&
FLAG_ACTIVE
;
}
inline
bool
active
()
const
{
return
flags
&
FLAG_ACTIVE
;
}
inline
void
setActive
(
bool
a
)
{
flags
=
(
flags
&
~
FLAG_ACTIVE
)
|
a
*
FLAG_ACTIVE
;
}
inline
void
setActive
(
bool
a
)
{
flags
=
(
flags
&
~
FLAG_ACTIVE
)
|
a
*
FLAG_ACTIVE
;
}
...
@@ -238,7 +238,11 @@ void DropDownWordList::drawIcon(DC& dc, int x, int y, size_t item, bool selected
...
@@ -238,7 +238,11 @@ void DropDownWordList::drawIcon(DC& dc, int x, int y, size_t item, bool selected
DropDownList
*
DropDownWordList
::
submenu
(
size_t
item
)
const
{
DropDownList
*
DropDownWordList
::
submenu
(
size_t
item
)
const
{
DropDownWordListItem
&
i
=
items
[
item
];
DropDownWordListItem
&
i
=
items
[
item
];
if
(
i
.
submenu
)
return
i
.
submenu
.
get
();
if
(
i
.
submenu
)
{
// make sure the members of the submenu are still up to date (in particular the pos, see #13)
i
.
submenu
->
pos
=
pos
;
return
i
.
submenu
.
get
();
}
if
(
i
.
flags
&
FLAG_SUBMENU
)
{
if
(
i
.
flags
&
FLAG_SUBMENU
)
{
// create submenu?
// create submenu?
if
(
!
i
.
submenu
)
{
if
(
!
i
.
submenu
)
{
...
...
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