[Libreoffice-commits] core.git: Branch 'libreoffice-4-1' - librelogo/source
László Németh
nemeth at numbertext.org
Tue Jun 25 17:48:44 PDT 2013
librelogo/source/LibreLogo/LibreLogo.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 0508a56fdf11daa7c0becc7020ad0b22acd56a7e
Author: László Németh <nemeth at numbertext.org>
Date: Wed Jun 26 02:00:51 2013 +0200
fdo#66180 librelogo: clockwise HEADING
Change-Id: I1154b29119fd3fbb30d50246e94b3906bea24220
diff --git a/librelogo/source/LibreLogo/LibreLogo.py b/librelogo/source/LibreLogo/LibreLogo.py
index 2231646..bf925c8 100644
--- a/librelogo/source/LibreLogo/LibreLogo.py
+++ b/librelogo/source/LibreLogo/LibreLogo.py
@@ -722,7 +722,7 @@ def turnright(deg):
def heading(deg = -1, go = False):
turtle = __getshape__(__TURTLE__)
if deg == -1:
- return turtle.RotateAngle / 100
+ return -turtle.RotateAngle / 100 + 360
else:
if deg == u'any':
turtle.RotateAngle = random.random() * 36000
@@ -739,7 +739,7 @@ def heading(deg = -1, go = False):
if go and n > 0:
__go__(__TURTLE__, -n, False, a)
else:
- turtle.RotateAngle = deg * 100
+ turtle.RotateAngle = -deg * 100
def rotate(shapename, deg):
shape = __getshape__(shapename)
More information about the Libreoffice-commits
mailing list