diff --git a/core/src/avm2/globals/flash/text/text_field.rs b/core/src/avm2/globals/flash/text/text_field.rs index d91905534c1c..2e884a775294 100644 --- a/core/src/avm2/globals/flash/text/text_field.rs +++ b/core/src/avm2/globals/flash/text/text_field.rs @@ -1635,6 +1635,10 @@ pub fn get_char_boundaries<'gc>( return Ok(Value::Null); }; + if bounds.width() == swf::Twips::ZERO { + return Ok(Value::Null); + } + let rect = activation .avm2() .classes()