From 72bf8dc317234a8973b74ec0254998eb1bad9fbb Mon Sep 17 00:00:00 2001 From: Birunthan Mohanathas Date: Sun, 9 Jun 2013 19:05:46 +0300 Subject: [PATCH] String: Fix issue with Angle= since 59b3dea --- Library/MeterString.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Library/MeterString.cpp b/Library/MeterString.cpp index eb701d45..30d35d55 100644 --- a/Library/MeterString.cpp +++ b/Library/MeterString.cpp @@ -543,7 +543,8 @@ bool MeterString::DrawString(Gfx::Canvas& canvas, RectF* rect) if (m_Angle != 0.0f) { - canvas.RotateTransform(CONVERT_TO_DEGREES(m_Angle), x, y, -x, -y); + const float baseX = (float)Meter::GetX(); + canvas.RotateTransform(CONVERT_TO_DEGREES(m_Angle), baseX, y, -baseX, -y); } if (m_Effect != EFFECT_NONE)