Fix bug to copy glyph from in_string, not out_string.
authorBehdad Esfahbod <behdad@src.gnome.org>
Tue, 27 Jul 2004 10:43:58 +0000 (10:43 +0000)
committerBehdad Esfahbod <behdad@src.gnome.org>
Tue, 27 Jul 2004 10:43:58 +0000 (10:43 +0000)
* pango/opentype/otlbuffer.c (otl_buffer_copy_output_glyph):
Fix bug to copy glyph from in_string, not out_string.

src/otlbuffer.c

index 9849fd5..b8595b2 100644 (file)
 
   FT_Error
   otl_buffer_add_output_glyph( OTL_Buffer buffer,      
-                      FT_UInt    glyph_index,
+                              FT_UInt    glyph_index,
                               FT_UShort  component,
                               FT_UShort  ligID )
   {
     if ( error )
       return error;
     
-    buffer->out_string[buffer->out_pos++] = buffer->out_string[buffer->in_pos++];
+    buffer->out_string[buffer->out_pos++] = buffer->in_string[buffer->in_pos++];
     buffer->out_length = buffer->out_pos;
 
     return FT_Err_Ok;