gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] /srv/bzr/gnash/trunk r11205: Prevent a crash in AS3 TextF


From: Benjamin Wolsey
Subject: [Gnash-commit] /srv/bzr/gnash/trunk r11205: Prevent a crash in AS3 TextFields (without giving a real fix).
Date: Mon, 06 Jul 2009 17:56:10 +0200
User-agent: Bazaar (1.13.1)

------------------------------------------------------------
revno: 11205
committer: Benjamin Wolsey <address@hidden>
branch nick: trunk
timestamp: Mon 2009-07-06 17:56:10 +0200
message:
  Prevent a crash in AS3 TextFields (without giving a real fix).
modified:
  libcore/TextField.cpp
=== modified file 'libcore/TextField.cpp'
--- a/libcore/TextField.cpp     2009-06-16 05:42:44 +0000
+++ b/libcore/TextField.cpp     2009-07-06 15:56:10 +0000
@@ -2425,6 +2425,14 @@
     if ( tf->colorDefined() ) text->setTextColor(tf->color());
     if ( tf->underlinedDefined() ) text->setUnderlined(tf->underlined());
 
+    if (isAS3(fn)) {
+        // TODO: current font finding assumes we have a parent, which isn't
+        // necessarily the case in AS3. It seems the AS2 implementation is
+        // wrong anyway.
+        log_unimpl("fonts in AS3 TextField.setTextFormat");
+        return as_value();
+    }
+
     if ( tf->fontDefined() )
     {
         const std::string& fontName = tf->font();


reply via email to

[Prev in Thread] Current Thread [Next in Thread]