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
7de394cb
Commit
7de394cb
authored
Feb 17, 2005
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bugfix in select of reference connections
parent
d2b7663e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
8 deletions
+13
-8
xtt/lib/flow/src/flow_con.cpp
xtt/lib/flow/src/flow_con.cpp
+13
-8
No files found.
xtt/lib/flow/src/flow_con.cpp
View file @
7de394cb
...
@@ -479,15 +479,20 @@ void FlowCon::set_hot( int on)
...
@@ -479,15 +479,20 @@ void FlowCon::set_hot( int on)
void
FlowCon
::
select_region_insert
(
double
ll_x
,
double
ll_y
,
double
ur_x
,
void
FlowCon
::
select_region_insert
(
double
ll_x
,
double
ll_y
,
double
ur_x
,
double
ur_y
)
double
ur_y
)
{
{
if
(
ctx
->
select_policy
==
flow_eSelectPolicy_Surround
)
if
(
temporary_ref
||
cc
->
con_type
==
flow_eConType_Reference
)
{
{
// Allways surround
if
(
x_left
>
ll_x
&&
x_right
<
ur_x
&&
y_high
<
ur_y
&&
y_low
>
ll_y
)
if
(
x_left
>
ll_x
&&
x_right
<
ur_x
&&
y_high
<
ur_y
&&
y_low
>
ll_y
)
ctx
->
select_insert
(
this
);
ctx
->
select_insert
(
this
);
}
}
else
else
{
{
if
(
ctx
->
select_policy
==
flow_eSelectPolicy_Surround
)
{
if
(
x_right
>
ll_x
&&
x_left
<
ur_x
&&
y_low
<
ur_y
&&
y_high
>
ll_y
)
if
(
x_left
>
ll_x
&&
x_right
<
ur_x
&&
y_high
<
ur_y
&&
y_low
>
ll_y
)
ctx
->
select_insert
(
this
);
ctx
->
select_insert
(
this
);
}
else
{
if
(
x_right
>
ll_x
&&
x_left
<
ur_x
&&
y_low
<
ur_y
&&
y_high
>
ll_y
)
ctx
->
select_insert
(
this
);
}
}
}
}
}
...
@@ -3311,7 +3316,7 @@ int FlowCon::event_handler( flow_eEvent event, int x, int y)
...
@@ -3311,7 +3316,7 @@ int FlowCon::event_handler( flow_eEvent event, int x, int y)
{
{
case
flow_eEvent_CursorMotion
:
case
flow_eEvent_CursorMotion
:
if
(
temporary_ref
||
cc
->
con_type
==
flow_eConType_Reference
)
if
(
temporary_ref
||
cc
->
con_type
==
flow_eConType_Reference
)
sts
=
ref_a
.
event_handler
(
&
cc
->
zero
,
event
,
x
,
y
,
0
);
sts
=
ref_a
.
event_handler
(
&
cc
->
zero
,
event
,
x
,
y
,
ref_a
.
size
()
);
else
else
sts
=
line_a
.
event_handler
(
&
cc
->
zero
,
event
,
x
,
y
,
l_num
);
sts
=
line_a
.
event_handler
(
&
cc
->
zero
,
event
,
x
,
y
,
l_num
);
if
(
sts
&&
!
hot
&&
if
(
sts
&&
!
hot
&&
...
@@ -3358,7 +3363,7 @@ int FlowCon::event_handler( flow_eEvent event, int x, int y)
...
@@ -3358,7 +3363,7 @@ int FlowCon::event_handler( flow_eEvent event, int x, int y)
break
;
break
;
default:
default:
if
(
temporary_ref
||
cc
->
con_type
==
flow_eConType_Reference
)
if
(
temporary_ref
||
cc
->
con_type
==
flow_eConType_Reference
)
sts
=
ref_a
.
event_handler
(
&
cc
->
zero
,
event
,
x
,
y
,
0
);
sts
=
ref_a
.
event_handler
(
&
cc
->
zero
,
event
,
x
,
y
,
ref_a
.
size
()
);
else
else
sts
=
line_a
.
event_handler
(
&
cc
->
zero
,
event
,
x
,
y
,
l_num
);
sts
=
line_a
.
event_handler
(
&
cc
->
zero
,
event
,
x
,
y
,
l_num
);
}
}
...
...
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