forked from minhngoc25a/freetype2
[ot-svg] Don't accept the hooks if value has been passed from an
env variable.
This commit is contained in:
parent
c492bf3f0a
commit
836c94e8d2
|
@ -131,7 +131,13 @@
|
|||
|
||||
if ( !ft_strcmp( property_name, "svg_hooks" ) )
|
||||
{
|
||||
SVG_RendererHooks* hooks = (SVG_RendererHooks*)value;
|
||||
SVG_RendererHooks* hooks;
|
||||
|
||||
|
||||
if ( value_is_string == TRUE )
|
||||
return FT_THROW( Invalid_Argument );
|
||||
|
||||
hooks = (SVG_RendererHooks*)value;
|
||||
renderer->hooks = *hooks;
|
||||
renderer->hooks_set = TRUE;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue