Commit 5a96b07c1f5dbd0a0a27f3fa41a5052a702d2b49

Werner Lemberg 2000-10-17T14:29:48

Fixed two typos spotted by Ryan Martindale <ryan@qsicorp.com>.

diff --git a/src/base/ftglyph.c b/src/base/ftglyph.c
index ccea179..47d61ca 100644
--- a/src/base/ftglyph.c
+++ b/src/base/ftglyph.c
@@ -163,7 +163,7 @@
     size = (FT_ULong)( pitch * source->rows );
 
     if ( !ALLOC( target->buffer, size ) )
-      MEM_Copy( source->buffer, target->buffer, size );
+      MEM_Copy( target->buffer, source->buffer, size );
 
     return error;
   }
@@ -233,7 +233,7 @@
     cbox->xMin = glyph->left << 6;
     cbox->xMax = cbox->xMin + ( glyph->bitmap.width << 6 );
     cbox->yMax = glyph->top << 6;
-    cbox->yMin = cbox->xMax - ( glyph->bitmap.rows << 6 );
+    cbox->yMin = cbox->yMax - ( glyph->bitmap.rows << 6 );
   }