Commit 0e7b8c55597bbd977e5eeebb2e490b675378b935

sammy 2010-05-22T22:28:55

Fix ftglGetLayoutAlignment spelling. Addresses SF bug #2120985.

diff --git a/src/FTGL/FTSimpleLayout.h b/src/FTGL/FTSimpleLayout.h
index 7a6e64a..c711168 100644
--- a/src/FTGL/FTSimpleLayout.h
+++ b/src/FTGL/FTSimpleLayout.h
@@ -180,7 +180,8 @@ FTGL_EXPORT void ftglSetLayoutLineLength(FTGLlayout *, const float);
 FTGL_EXPORT float ftglGetLayoutLineLength(FTGLlayout *);
 
 FTGL_EXPORT void ftglSetLayoutAlignment(FTGLlayout *, const int);
-FTGL_EXPORT int ftglGetLayoutAlignement(FTGLlayout *);
+FTGL_EXPORT int ftglGetLayoutAlignment(FTGLlayout *);
+FTGL_EXPORT int ftglGetLayoutAlignement(FTGLlayout *); // old typo
 
 FTGL_EXPORT void ftglSetLayoutLineSpacing(FTGLlayout *, const float);
 FTGL_EXPORT float ftglGetLayoutLineSpacing(FTGLlayout *);
diff --git a/src/FTLayout/FTLayoutGlue.cpp b/src/FTLayout/FTLayoutGlue.cpp
index cf11b7f..eb71d23 100644
--- a/src/FTLayout/FTLayoutGlue.cpp
+++ b/src/FTLayout/FTLayoutGlue.cpp
@@ -160,8 +160,10 @@ C_FUN(void, ftglSetLayoutAlignment, (FTGLlayout *l, const int a),
       return, SetAlignment, ((FTGL::TextAlignment)a));
 
 // TextAlignment FTSimpleLayout::GetAlignment() const
-C_FUN(int, ftglGetLayoutAlignement, (FTGLlayout *l),
+C_FUN(int, ftglGetLayoutAlignment, (FTGLlayout *l),
       return FTGL::ALIGN_LEFT, GetAlignment, ());
+C_FUN(int, ftglGetLayoutAlignement, (FTGLlayout *l),
+      return FTGL::ALIGN_LEFT, GetAlignment, ()); // old typo
 
 // void FTSimpleLayout::SetLineSpacing(const float LineSpacing)
 C_FUN(void, ftglSetLayoutLineSpacing, (FTGLlayout *l, const float f),