Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Wynn
purr-data
Commits
f3ef61ca
Commit
f3ef61ca
authored
Dec 06, 2011
by
Ivica Bukvic
Browse files
Fixed minor regression in undo_cut where first connection was not getting saved
parent
96c560f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/g_editor.c
View file @
f3ef61ca
...
...
@@ -617,24 +617,24 @@ static void *canvas_undo_set_cut(t_canvas *x, int mode)
/* store connections into/out of the selection */
buf
->
u_reconnectbuf
=
binbuf_new
();
linetraverser_start
(
&
t
,
x
);
if
(
linetraverser_next
(
&
t
))
{
while
(
oc
=
linetraverser_next
(
&
t
))
{
int
issel1
=
glist_isselected
(
x
,
&
t
.
tr_ob
->
ob_g
);
int
issel2
=
glist_isselected
(
x
,
&
t
.
tr_ob2
->
ob_g
);
if
(
issel1
!=
issel2
)
{
binbuf_addv
(
buf
->
u_reconnectbuf
,
"ssiiii;"
,
gensym
(
"#X"
),
gensym
(
"connect"
),
(
issel1
?
nnotsel
:
0
)
+
glist_selectionindex
(
x
,
&
t
.
tr_ob
->
ob_g
,
issel1
),
t
.
tr_outno
,
(
issel2
?
nnotsel
:
0
)
+
glist_selectionindex
(
x
,
&
t
.
tr_ob2
->
ob_g
,
issel2
),
t
.
tr_inno
);
}
}
//if (linetraverser_next(&t)) {
while
(
oc
=
linetraverser_next
(
&
t
))
{
int
issel1
=
glist_isselected
(
x
,
&
t
.
tr_ob
->
ob_g
);
int
issel2
=
glist_isselected
(
x
,
&
t
.
tr_ob2
->
ob_g
);
if
(
issel1
!=
issel2
)
{
binbuf_addv
(
buf
->
u_reconnectbuf
,
"ssiiii;"
,
gensym
(
"#X"
),
gensym
(
"connect"
),
(
issel1
?
nnotsel
:
0
)
+
glist_selectionindex
(
x
,
&
t
.
tr_ob
->
ob_g
,
issel1
),
t
.
tr_outno
,
(
issel2
?
nnotsel
:
0
)
+
glist_selectionindex
(
x
,
&
t
.
tr_ob2
->
ob_g
,
issel2
),
t
.
tr_inno
);
}
}
//}
if
(
mode
==
UCUT_TEXT
)
{
buf
->
u_objectbuf
=
canvas_docopy
(
x
);
...
...
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