[gbrainy] Fixes vertical aligment in DrawTextAlignedRight



commit 473fe0cee510093e152adf2c3df99774f3081b32
Author: Jordi Mas <jmas softcatala org>
Date:   Sat Nov 27 12:45:51 2010 +0100

    Fixes vertical aligment in DrawTextAlignedRight

 src/Core/Libraries/CairoContext.cs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/Core/Libraries/CairoContext.cs b/src/Core/Libraries/CairoContext.cs
index 9b76116..3bab357 100644
--- a/src/Core/Libraries/CairoContext.cs
+++ b/src/Core/Libraries/CairoContext.cs
@@ -161,7 +161,7 @@ namespace gbrainy.Core.Libraries
 			layout.SingleParagraphMode = true;
 			layout.Width = -1;
 			layout.GetPixelSize (out w, out h);
-			MoveTo ((old.X0 + x * old.Xx) - w, y * old.Yy);
+			MoveTo ((old.X0 + x * old.Xx) - w, old.Y0 + y * old.Yy);
 			Pango.CairoHelper.ShowLayout (this, layout);
 			Matrix = old;
 		}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]