bugfix: drawings in source editor

[?]
May 30, 2023, 7:00 AM
KKHSOUW46XWS7M4JOKFQ5CIUPRRAWGQADVSOWJJ7TH37H24EEKPQC

Dependencies

  • [2] OI4FPFIN support drawings in the source editor
  • [3] VHQCNMAR several more modules
  • [4] 2XLZCWZC bugfix: rectangles and squares are now saved
  • [5] KKMFQDR4 editing source code from within the app
  • [6] UN7L3DNN avoid some string concatenations
  • [7] 2K2YDMFH ignore 'deleted' shapes when saving to disk

Change contents

  • replacement in source_file.lua at line 96
    [2.14473][2.14473:14519]()
    outfile:write(json.encode(shape), '\n')
    [2.14473]
    [2.14519]
    outfile:write(json.encode(shape))
    outfile:write('\n')
  • replacement in source_file.lua at line 100
    [2.14693][2.14693:14725]()
    outfile:write(line, '\n')
    [2.14693]
    [2.14725]
    outfile:write(line)
    outfile:write('\n')
  • replacement in source_file.lua at line 108
    [2.15012][2.15012:15044]()
    outfile:write(line, '\n')
    [2.15012]
    [2.15044]
    outfile:write(line)
    outfile:write('\n')
  • replacement in source_file.lua at line 111
    [2.15083][2.15083:15199]()
    outfile:write(json.encode({mode=shape.mode, center=drawing.points[shape.center], radius=shape.radius}), '\n')
    [2.15083]
    [2.15199]
    outfile:write(json.encode({mode=shape.mode, center=drawing.points[shape.center], radius=shape.radius}))
    outfile:write('\n')
  • replacement in source_file.lua at line 114
    [2.15235][2.15235:15409]()
    outfile:write(json.encode({mode=shape.mode, center=drawing.points[shape.center], radius=shape.radius, start_angle=shape.start_angle, end_angle=shape.end_angle}), '\n')
    [2.15235]
    [2.15409]
    outfile:write(json.encode({mode=shape.mode, center=drawing.points[shape.center], radius=shape.radius, start_angle=shape.start_angle, end_angle=shape.end_angle}))
    outfile:write('\n')
  • replacement in file.lua at line 95
    [3.17287][3.52:98]()
    outfile:write(json.encode(shape), '\n')
    [3.17287]
    [3.17333]
    outfile:write(json.encode(shape))
    outfile:write('\n')
  • replacement in file.lua at line 99
    [3.17507][3.99:131]()
    outfile:write(line, '\n')
    [3.17507]
    [3.289]
    outfile:write(line)
    outfile:write('\n')
  • replacement in file.lua at line 107
    [3.17771][3.132:164]()
    outfile:write(line, '\n')
    [3.17771]
    [3.17803]
    outfile:write(line)
    outfile:write('\n')
  • replacement in file.lua at line 110
    [3.17842][3.165:281]()
    outfile:write(json.encode({mode=shape.mode, center=drawing.points[shape.center], radius=shape.radius}), '\n')
    [3.17842]
    [3.17958]
    outfile:write(json.encode({mode=shape.mode, center=drawing.points[shape.center], radius=shape.radius}))
    outfile:write('\n')
  • replacement in file.lua at line 113
    [3.17994][3.282:456]()
    outfile:write(json.encode({mode=shape.mode, center=drawing.points[shape.center], radius=shape.radius, start_angle=shape.start_angle, end_angle=shape.end_angle}), '\n')
    [3.17994]
    [3.67]
    outfile:write(json.encode({mode=shape.mode, center=drawing.points[shape.center], radius=shape.radius, start_angle=shape.start_angle, end_angle=shape.end_angle}))
    outfile:write('\n')