Skip to content

Commit 5d60c62

Browse files
committed
qtplasmac: misshaped conversational rectangle
conversational rectangles were misshaped when internal and angled
1 parent 7218711 commit 5d60c62

2 files changed

Lines changed: 3 additions & 7 deletions

File tree

lib/python/plasmac/rectangle.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -341,12 +341,8 @@ def preview(Conv, fTmp, fNgc, fNgcBkp,
341341
else:
342342
outTmp.write(f'G00 X{xS:.6f} Y{yS:.6f}\n')
343343
outTmp.write('M03 $0 S1\n')
344-
if radius1:
345-
x1 = xS + ((xLT - (radius1 - radius2)) / 2) * math.cos(angle + left)
346-
y1 = yS + ((xLT - (radius1 - radius2)) / 2) * math.sin(angle + left)
347-
else:
348-
x1 = xS - (width / 2)
349-
y1 = yS
344+
x1 = xS + ((xLT - (radius1 - radius2)) / 2) * math.cos(angle + left)
345+
y1 = yS + ((xLT - (radius1 - radius2)) / 2) * math.sin(angle + left)
350346
outTmp.write(f'G01 X{x1:.6f} Y{y1:.6f}\n')
351347
if radius1:
352348
if styleR1 == 'intRadius':

share/qtvcp/screens/qtplasmac/qtplasmac_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION = '008.065'
1+
VERSION = '008.066'
22
LCNCVER = '2.10'
33

44
'''

0 commit comments

Comments
 (0)