Commit c1e6edfa8eaf3e64db2f23812f0bd628abb85725

henry 2003-01-06T04:10:18

Minor change to BBox

diff --git a/src/FTFont.cpp b/src/FTFont.cpp
index 14540a3..b2d0215 100755
--- a/src/FTFont.cpp
+++ b/src/FTFont.cpp
@@ -93,12 +93,11 @@ void FTFont::BBox( const char* string,
     if( NULL != *string)
     {
         const unsigned char* c = (unsigned char*)string;
-        float advance = 0;
 
         CheckGlyph( *c);
 
         totalBBox = glyphList->BBox( *c);
-        advance = glyphList->Advance( *c, *(c + 1));
+        float advance = glyphList->Advance( *c, *(c + 1));
         ++c;
             
         while( *c)
@@ -129,12 +128,11 @@ void FTFont::BBox( const wchar_t* string,
     if( NULL != *string)
     {
         const wchar_t* c = string;
-        float advance = 0;
 
         CheckGlyph( *c);
 
         totalBBox = glyphList->BBox( *c);
-        advance = glyphList->Advance( *c, *(c + 1));
+        float advance = glyphList->Advance( *c, *(c + 1));
         ++c;
 
         while( *c)