Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Romain De Laage De Bellefaye
LO21-projet
Commits
ea4fa442
Verified
Commit
ea4fa442
authored
Jun 12, 2021
by
Romain De Laage De Bellefaye
🌳
Browse files
Resolve first segfault
parent
eda64c01
Pipeline
#79804
passed with stage
in 16 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/autosql.cpp
View file @
ea4fa442
...
...
@@ -181,7 +181,7 @@ RegleVoisinage* Database::getRegleVoisinage(const QString& name) const {
regle
=
new
RegleVoisinageMoore
;
dynamic_cast
<
RegleVoisinageMoore
*>
(
regle
)
->
setr
(
query
.
value
(
"rayon"
).
toInt
());
}
else
if
(
type
!
=
3
)
{
else
if
(
type
=
=
3
)
{
query
.
prepare
(
"SELECT x, y FROM coord_voisinage WHERE id = :id"
);
query
.
bindValue
(
":id"
,
name
);
query
.
exec
();
...
...
@@ -197,6 +197,9 @@ RegleVoisinage* Database::getRegleVoisinage(const QString& name) const {
dynamic_cast
<
RegleVoisinageArbitraire
*>
(
regle
)
->
coordonnees
.
push_back
(
coord
);
}
while
(
query
.
next
());
}
else
{
throw
"Unknown type of neighbourhood!"
;
}
return
regle
;
}
...
...
Write
Preview
Supports
Markdown
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