Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
resources
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TDT4102
VS-Code
resources
Commits
aedab248
Commit
aedab248
authored
11 months ago
by
Joakim Hunskaar
Browse files
Options
Downloads
Patches
Plain Diff
actually check the size of initialoptions
parent
e04fb1f4
No related branches found
Branches containing commit
No related tags found
1 merge request
!7
Dropdownlist is now more similar to the other widgets
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dependencies/subprojects/animationwindow/src/widgets/DropdownList.cpp
+1
-1
1 addition, 1 deletion
.../subprojects/animationwindow/src/widgets/DropdownList.cpp
with
1 addition
and
1 deletion
dependencies/subprojects/animationwindow/src/widgets/DropdownList.cpp
+
1
−
1
View file @
aedab248
...
...
@@ -3,7 +3,7 @@
TDT4102
::
DropdownList
::
DropdownList
(
TDT4102
::
Point
location
,
unsigned
int
width
,
unsigned
int
height
,
std
::
vector
<
std
::
string
>
&
initialOptions
)
:
TDT4102
::
Widget
(
location
,
width
,
height
)
{
if
(
o
ptions
.
size
()
==
0
)
{
if
(
initialO
ptions
.
size
()
==
0
)
{
throw
std
::
runtime_error
(
"The list of options must contain at least one option to choose from!"
);
}
options
=
initialOptions
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment