Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
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
Esteban Blanc
proview
Commits
98cc6416
Commit
98cc6416
authored
Nov 02, 2015
by
Marcus Nordenberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUGFIX: Crash when trying to open context menu on connection in PLC editor
parent
ce319ad9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
4 deletions
+20
-4
wb/lib/wb/src/wb_gre.cpp
wb/lib/wb/src/wb_gre.cpp
+20
-4
No files found.
wb/lib/wb/src/wb_gre.cpp
View file @
98cc6416
...
...
@@ -2941,8 +2941,16 @@ int WGre::undisplay()
//
int
WGre
::
node_select
(
vldh_t_node
node
)
{
flow_SelectInsert
(
flow_ctx
,
node
->
hn
.
node_id
);
flow_SetHighlight
(
node
->
hn
.
node_id
,
1
);
/* Check if a connection is selected or not */
if
(
node
->
hn
.
vldhtype
==
VLDH_CON
)
{
flow_SelectInsert
(
flow_ctx
,
((
vldh_t_con
)
node
)
->
hc
.
con_id
);
flow_SetHighlight
(((
vldh_t_con
)
node
)
->
hc
.
con_id
,
1
);
}
else
{
flow_SelectInsert
(
flow_ctx
,
node
->
hn
.
node_id
);
flow_SetHighlight
(
node
->
hn
.
node_id
,
1
);
}
return
GRE__SUCCESS
;
}
...
...
@@ -2952,8 +2960,16 @@ int WGre::node_select( vldh_t_node node)
//
int
WGre
::
node_unselect
(
vldh_t_node
node
)
{
flow_SelectRemove
(
flow_ctx
,
node
->
hn
.
node_id
);
flow_SetHighlight
(
node
->
hn
.
node_id
,
0
);
/* Check if a connection is selected or not */
if
(
node
->
hn
.
vldhtype
==
VLDH_CON
)
{
flow_SelectRemove
(
flow_ctx
,
((
vldh_t_con
)
node
)
->
hc
.
con_id
);
flow_SetHighlight
(((
vldh_t_con
)
node
)
->
hc
.
con_id
,
0
);
}
else
{
flow_SelectRemove
(
flow_ctx
,
node
->
hn
.
node_id
);
flow_SetHighlight
(
node
->
hn
.
node_id
,
0
);
}
return
GRE__SUCCESS
;
}
...
...
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