User Defined Grid Size Y Setting Ignored for Grid Display

Bug #1821416 reported by Mark J. Blair
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
KiCad
Fix Released
Low
Ian McInerney

Bug Description

After upgrading from KiCad 5.0.1-3 to KiCad 5.1.0-0 for Mac OS X 10.11-10.13 (https://kicad-downloads.s3.cern.ch/osx/stable/kicad-unified-5.1.0.dmg), the displayed grid ignores the User Defined Grid "Size Y" field. When I set different sizes for X and Y, the X value is used for displaying grid dots on both axes, though the actual grid snapping appears to follow the specified settings.

This bug occurs in both Modern Toolset (Accelerated) and Modern Toolset (Fallback), but not in Legacy Toolset. The bug is still present in the 2019-03-22 nightly build (https://kicad-downloads.s3.cern.ch/osx/nightly/kicad-nightly-20190322-014317-68d8f4467.dmg). This occurs in both Pcbnew and Footprint Editor.

Application: kicad
Version: (5.1.0-0), release build
Libraries:
    wxWidgets 3.0.4
    libcurl/7.54.0 LibreSSL/2.0.20 zlib/1.2.11 nghttp2/1.24.0
Platform: Mac OS X (Darwin 17.7.0 x86_64), 64 bit, Little endian, wxMac
Build Info:
    wxWidgets: 3.0.4 (UTF-8,STL containers,compatible with 2.8)
    Boost: 1.68.0
    OpenCASCADE Community Edition: 6.9.1
    Curl: 7.51.0
    Compiler: Clang 8.0.0 with C++ ABI 1002

Build settings:
    USE_WX_GRAPHICS_CONTEXT=ON
    USE_WX_OVERLAY=ON
    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: gal pcbnew
Changed in kicad:
importance: Undecided → Low
milestone: none → 5.1.1
status: New → Confirmed
Changed in kicad:
milestone: 5.1.1 → 5.1.2
Changed in kicad:
milestone: 5.1.2 → 5.1.3
tags: added: gal pcbnew
Changed in kicad:
assignee: nobody → Ian McInerney (imcinerney)
status: Confirmed → In Progress
Revision history for this message
Ian McInerney (imcinerney) wrote :

The attached patch decouples the X and Y step sizes when drawing the grid. It also cleans up some of the code in the DrawGrid function by fixing some type issues and an unused variable.

Revision history for this message
KiCad Janitor (kicad-janitor) wrote :

Fixed in revision 45f10fcff1b4429975634b6595d9acad86380074
https://git.launchpad.net/kicad/patch/?id=45f10fcff1b4429975634b6595d9acad86380074

Changed in kicad:
status: In Progress → Fix Committed
Changed in kicad:
status: Fix Committed → Fix Released
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.