gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] /srv/bzr/gnash/trunk r11382: Fix return bug.


From: Benjamin Wolsey
Subject: [Gnash-commit] /srv/bzr/gnash/trunk r11382: Fix return bug.
Date: Fri, 07 Aug 2009 08:28:51 +0200
User-agent: Bazaar (1.16.1)

------------------------------------------------------------
revno: 11382 [merge]
committer: Benjamin Wolsey <address@hidden>
branch nick: trunk
timestamp: Fri 2009-08-07 08:28:51 +0200
message:
  Fix return bug.
modified:
  libcore/swf/TextRecord.h
=== modified file 'libcore/swf/TextRecord.h'
--- a/libcore/swf/TextRecord.h  2009-08-06 21:04:55 +0000
+++ b/libcore/swf/TextRecord.h  2009-08-07 06:08:36 +0000
@@ -96,10 +96,6 @@
         return _glyphs;
     }
 
-    Glyphs& glyphsnonconst() {
-        return _glyphs;
-    }
-
     void addGlyph(const GlyphEntry& ge, Glyphs::size_type num = 1) {
         _glyphs.insert(_glyphs.end(), num, ge);
     }
@@ -139,12 +135,14 @@
     }
 
        float recordWidth() const {
-               float width=0.0;
-               for (size_t i=0; i < glyphs().size(); ++i)
+               float width = 0.0f;
+               for (size_t i = 0; i < glyphs().size(); ++i)
                {
                        width += glyphs()[i].advance;
                }
+        return width;
        }
+
     boost::uint16_t textHeight() const {
         return _textHeight;
     }


reply via email to

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