[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash/server edit_text_character.cpp [release_0_7_2]
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] gnash/server edit_text_character.cpp [release_0_7_2] |
Date: |
Mon, 06 Nov 2006 11:05:54 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Branch: release_0_7_2
Changes by: Sandro Santilli <strk> 06/11/06 11:05:54
Modified files:
server : edit_text_character.cpp
Log message:
ops, using unexisting method of tu_string (in head we don't use
tu_string, luckly)
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/server/edit_text_character.cpp?cvsroot=gnash&only_with_tag=release_0_7_2&r1=1.22.2.3&r2=1.22.2.4
Patches:
Index: edit_text_character.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/edit_text_character.cpp,v
retrieving revision 1.22.2.3
retrieving revision 1.22.2.4
diff -u -b -r1.22.2.3 -r1.22.2.4
--- edit_text_character.cpp 6 Nov 2006 10:54:28 -0000 1.22.2.3
+++ edit_text_character.cpp 6 Nov 2006 11:05:54 -0000 1.22.2.4
@@ -3,7 +3,7 @@
// This source code has been donated to the Public Domain. Do
// whatever you want with it.
-/* $Id: edit_text_character.cpp,v 1.22.2.3 2006/11/06 10:54:28 strk Exp $ */
+/* $Id: edit_text_character.cpp,v 1.22.2.4 2006/11/06 11:05:54 strk Exp $ */
#include "utf8.h"
#include "log.h"
@@ -542,7 +542,7 @@
m_text_glyph_records.resize(0);
// nothing to do if we have no text
- if ( m_text.empty() ) return;
+ if ( m_text.length() < 1 ) return;
// FIXME: I don't think we should query the definition
// to find the appropriate font to use, as ActionScript
@@ -617,7 +617,7 @@
m_xcursor = x;
m_ycursor = y;
- assert ( ! m_text.empty() );
+ assert ( m_text.length() > 0 );
const char* text = &m_text[0];
while (uint32_t code = utf8::decode_next_unicode_character(&text))
{