Page layout editor copy-paste error

Bug #1832211 reported by Dino Ghilardi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KiCad
Fix Committed
Undecided
jean-pierre charras

Bug Description

To reproduce the behaviour:
-Open page layout editor
-File->New to have an empty sheet (not needed)
-Add a new element (tested with line, text and box) to the sheet
-Select it and copy (ctrl-c or right-click menu)
-you get a window with:
   pl_editor information
   Expecting "'number'" in input/source "Sexpr_string" line 1, offset 24

If you try to copy-paste the elements of the default sheet, some work and same give the same error (with different offset)

Attached a file with just a line that issues the error with copy-paste.

Looking at the file, it seems that the end x coordinate has 14 decimal digits instead of the six used for start x,y and end y. may be it is related to this.

Tested on revision
bc096dc4ee9bf2a358d3690f69db52d652670a54
------------------------------------
Application: PlEditor
Version: (5.1.0-909-gbc096dc4e), release build
Libraries:
    wxWidgets 3.0.2
    libcurl/7.52.1 OpenSSL/1.0.2r zlib/1.2.8 libidn2/0.16 libpsl/0.17.0 (+libidn2/0.16) libssh2/1.7.0 nghttp2/1.18.1 librtmp/2.3
Platform: Linux 4.9.0-8-amd64 x86_64, 64 bit, Little endian, wxGTK
Build Info:
    wxWidgets: 3.0.2 (wchar_t,wx containers,compatible with 2.8) GTK+ 2.24
    Boost: 1.69.0
    OpenCASCADE Community Edition: 6.8.0
    Curl: 7.52.1
    Compiler: GCC 6.3.0 with C++ ABI 1010

Build settings:
    USE_WX_GRAPHICS_CONTEXT=OFF
    USE_WX_OVERLAY=OFF
    KICAD_SCRIPTING=ON
    KICAD_SCRIPTING_MODULES=ON
    KICAD_SCRIPTING_PYTHON3=OFF
    KICAD_SCRIPTING_WXPYTHON=ON
    KICAD_SCRIPTING_WXPYTHON_PHOENIX=OFF
    KICAD_SCRIPTING_ACTION_MENU=ON
    BUILD_GITHUB_PLUGIN=ON
    KICAD_USE_OCE=ON
    KICAD_USE_OCC=OFF
    KICAD_SPICE=ON

Tags: pleditor
Revision history for this message
Dino Ghilardi (dino-ghilardi) wrote :
Revision history for this message
KiCad Janitor (kicad-janitor) wrote :

Fixed in revision 074ebe0e2bc6771a7265d74adc9faf17425adc5c
https://git.launchpad.net/kicad/patch/?id=074ebe0e2bc6771a7265d74adc9faf17425adc5c

Changed in kicad:
status: New → Fix Committed
assignee: nobody → jean-pierre charras (jp-charras)
Changed in kicad:
milestone: none → 6.0.0-rc1
tags: added: pleditor
removed: page-layout
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.