Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Srashti Mittal
purr-data
Commits
18f1901f
Commit
18f1901f
authored
Sep 09, 2020
by
Guillem Bartrina
Browse files
fix unmarking process, it failed to unmark when a dirty patch was deleted
parent
7301e935
Changes
2
Hide whitespace changes
Inline
Side-by-side
pd/src/g_canvas.c
View file @
18f1901f
...
...
@@ -1022,6 +1022,10 @@ extern void canvas_group_free(t_pd *x);
void
canvas_free
(
t_canvas
*
x
)
{
//fprintf(stderr,"canvas_free %lx\n", (t_int)x);
if
(
x
->
gl_dirty
)
canvas_dirtyclimb
(
x
,
0
);
t_gobj
*
y
;
int
dspstate
=
canvas_suspend_dsp
();
...
...
pd/src/g_editor.c
View file @
18f1901f
...
...
@@ -1288,7 +1288,6 @@ void canvas_undo_paste(t_canvas *x, void *z, int action)
}
}
void
canvas_dirtyclimb
(
t_canvas
*
x
,
int
n
);
int
clone_match
(
t_pd
*
z
,
t_symbol
*
name
,
t_symbol
*
dir
);
/* recursively check for abstractions to reload as result of a save.
...
...
@@ -1315,10 +1314,6 @@ static void glist_doreload(t_glist *gl, t_symbol *name, t_symbol *dir,
((
t_canvas
*
)
g
)
->
gl_name
==
name
&&
canvas_getdir
((
t_canvas
*
)
g
)
==
dir
);
/* remove dirtiness visual markings */
if
(
remakeit
&&
((
t_canvas
*
)
g
)
->
gl_dirty
)
canvas_dirtyclimb
((
t_canvas
*
)
g
,
0
);
/* also remake it if it's a "clone" with that name */
if
(
pd_class
(
&
g
->
g_pd
)
==
clone_class
&&
clone_match
(
&
g
->
g_pd
,
name
,
dir
))
...
...
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