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
Gabriela Bittencourt
purr-data
Commits
d1763548
Commit
d1763548
authored
Sep 27, 2020
by
Guillem Bartrina
Browse files
fix abinfo error message on patch loading
parent
c2eeda56
Changes
3
Hide whitespace changes
Inline
Side-by-side
pd/src/g_canvas.c
View file @
d1763548
...
...
@@ -2508,7 +2508,7 @@ static t_symbol *ab_extend_name(t_canvas *x, t_symbol *s)
return
gensym
(
res
);
}
static
int
abframe
=
0
;
int
abframe
=
0
;
static
void
canvas_abframe
(
t_canvas
*
x
,
t_float
val
)
{
abframe
=
val
;
...
...
pd/src/g_canvas.h
View file @
d1763548
...
...
@@ -580,6 +580,7 @@ EXTERN void canvas_unsetcurrent(t_canvas *x);
EXTERN
t_symbol
*
canvas_realizedollar
(
t_canvas
*
x
,
t_symbol
*
s
);
EXTERN
t_canvas
*
canvas_getrootfor
(
t_canvas
*
x
);
EXTERN
t_canvas
*
canvas_getrootfor_ab
(
t_canvas
*
x
);
EXTERN
int
abframe
;
EXTERN
void
canvas_dirty
(
t_canvas
*
x
,
t_floatarg
n
);
EXTERN
int
canvas_getfont
(
t_canvas
*
x
);
typedef
int
(
*
t_canvasapply
)(
t_canvas
*
x
,
t_int
x1
,
t_int
x2
,
t_int
x3
);
...
...
pd/src/x_interface.c
View file @
d1763548
...
...
@@ -1652,8 +1652,13 @@ void *abinfo_new(void)
}
else
{
error
(
"abinfo: only instantiable inside an ab object"
);
x
=
0
;
if
(
!
abframe
)
{
error
(
"abinfo: only instantiable inside an ab object"
);
x
=
0
;
}
else
x
=
pd_new
(
text_class
);
}
return
(
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