gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] gnash/server styles.cpp


From: Sandro Santilli
Subject: [Gnash-commit] gnash/server styles.cpp
Date: Tue, 28 Nov 2006 16:47:33 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  06/11/28 16:47:33

Modified files:
        server         : styles.cpp 

Log message:
        Warn only once about invalid characters specified in bitmap fill styles

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/server/styles.cpp?cvsroot=gnash&r1=1.24&r2=1.25

Patches:
Index: styles.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/styles.cpp,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -b -r1.24 -r1.25
--- styles.cpp  11 Nov 2006 22:44:54 -0000      1.24
+++ styles.cpp  28 Nov 2006 16:47:33 -0000      1.25
@@ -161,12 +161,19 @@
        IF_VERBOSE_MALFORMED_SWF(
                if ( m_bitmap_character == NULL )
                {
+               static bool warned_about_invalid_char=false;
+               if ( ! warned_about_invalid_char )
+               {
                        log_warning("Bitmap fill specifies '%d' as associated"
                                " bitmap character id,"
                                " but that character is not found"
-                               " in the Characters Dictionary"
-                               " - Malformed SWF?",
+                               " in the Characters Dictionary."
+                               " It seems common to find such "
+                               " malformed SWF, so we'll only warn once "
+                               "about this.",
                                bitmap_char_id);
+                       warned_about_invalid_char=true;
+               }
                }
        );
 




reply via email to

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