From: osa Date: Wed, 19 Feb 2014 10:27:15 +0000 (+0400) Subject: 0024642: TKOpenGl, OpenGl_Text - rotation angle is ignored in case of 2D text X-Git-Tag: V6_8_0_beta~533 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=03e04ead37eb5310daea6b064b6bd4861e1882d7;p=occt-copy.git 0024642: TKOpenGl, OpenGl_Text - rotation angle is ignored in case of 2D text --- diff --git a/src/OpenGl/OpenGl_Text.cxx b/src/OpenGl/OpenGl_Text.cxx index c6a745fc11..64e186df2c 100755 --- a/src/OpenGl/OpenGl_Text.cxx +++ b/src/OpenGl/OpenGl_Text.cxx @@ -456,7 +456,8 @@ void OpenGl_Text::setupMatrix (const Handle(OpenGl_PrinterContext)& thePrintCtx, { glLoadIdentity(); glTranslatef (myPoint.x() + theDVec.x(), myPoint.y() + theDVec.y(), 0.0f); - glRotatef (180.0f, 1.0f, 0.0f, 0.0f); + glScalef (1.0f, -1.0f, 1.0f); + glRotatef (theTextAspect.Angle(), 0.0, 0.0, 1.0); } else {