pcb

Increments are incorrect after loading file

Bug #1748679 reported by Chad Parker
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
pcb
Fix Released
Low
Unassigned

Bug Description

Reported by Richard Rasker on geda-user:

Hello,

PCB appears to have a small bug with sizes and steps, at least when opening files with metric sizes. Here's how to reproduce it:

- Save a .pcb file with e.g. a 0.1 mm grid setting, and quit PCB.
- Start PCB, and open the file.
- Grid is correctly set at 0.1 mm, units are correctly set to mm as well.
- Press G to increase grid according to step size as defined in File -> Preferences -> Steps for the units used (0.05 mm in my case)
- Grid does NOT increase to 0.15 mm as expected, but to 0.2270 mm - so the imperial step setting is used.
(The same happens with other steps, e.g. line widths -- which actually is more annoying, because I sometimes only notice that I'm using the wrong line width after several minutes' work.)
- Fix: choose View -> Grid Size -> 0.1 mm, and from then on, G (and Shift+G, and L etcetera) behave as expected.

So after start-up, imperial step sizes are used, even if the file explicitly specifies metric sizes. This is somewhat annoying because one always has to explicitly set the grid size via the View menu before doing anything.

Also, it appears that the Route Styles option "Save as Default" for new designs does not work(*). PCB always starts with the same (imperial) Route Styles and default sizes.
This latter is not so much of a problem any more, because I created a script 'pcbcreate' which takes a project name, and then copies PCB, gschem and BOM template files to the project directory, with several attributes already set correctly.

*: This has been mentioned here before, IIRC

Anyway, it's not really a big deal, just a small bug...

Best regards,

Richard

Tags: core
Revision history for this message
Chad Parker (parker-charles) wrote :

The first part of this issues is fixed in branch LP1748679.

Changed in pcb:
assignee: nobody → Chad Parker (parker-charles)
assignee: Chad Parker (parker-charles) → nobody
status: New → In Progress
Changed in pcb:
milestone: none → pcb-4.1.1
importance: Undecided → Low
Revision history for this message
Bert Timmerman (bert-timmerman) wrote :

Hi Charles,

Reviewed and pushed to master.

Kind regards,

Bert Timmerman.

tags: added: core
Revision history for this message
Bert Timmerman (bert-timmerman) wrote :

Hi Charles,

Please split into:

1)
So after start-up, imperial step sizes are used, even if the file explicitly specifies metric sizes. This is somewhat annoying because one always has to explicitly set the grid size via the View menu before doing anything.

2)
Also, it appears that the Route Styles option "Save as Default" for new designs does not work(*). PCB always starts with the same (imperial) Route Styles and default sizes.
This latter is not so much of a problem any more, because I created a script 'pcbcreate' which takes a project name, and then copies PCB, gschem and BOM template files to the project directory, with several attributes already set correctly.

Kind regards,

Bert Timmerman.

Revision history for this message
Chad Parker (parker-charles) wrote : Re: [Bug 1748679] Re: Increments are incorrect after loading file

I'll open a second report for the second part.

On Mon, Feb 19, 2018, 19:00 Bert Timmerman <email address hidden>
wrote:

> Hi Charles,
>
> Please split into:
>
> 1)
> So after start-up, imperial step sizes are used, even if the file
> explicitly specifies metric sizes. This is somewhat annoying because one
> always has to explicitly set the grid size via the View menu before doing
> anything.
>
> 2)
> Also, it appears that the Route Styles option "Save as Default" for new
> designs does not work(*). PCB always starts with the same (imperial) Route
> Styles and default sizes.
> This latter is not so much of a problem any more, because I created a
> script 'pcbcreate' which takes a project name, and then copies PCB, gschem
> and BOM template files to the project directory, with several attributes
> already set correctly.
>
> Kind regards,
>
> Bert Timmerman.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1748679
>
> Title:
> Increments are incorrect after loading file
>
> Status in pcb:
> In Progress
>
> Bug description:
> Reported by Richard Rasker on geda-user:
>
> Hello,
>
> PCB appears to have a small bug with sizes and steps, at least when
> opening files with metric sizes. Here's how to reproduce it:
>
> - Save a .pcb file with e.g. a 0.1 mm grid setting, and quit PCB.
> - Start PCB, and open the file.
> - Grid is correctly set at 0.1 mm, units are correctly set to mm as well.
> - Press G to increase grid according to step size as defined in File ->
> Preferences -> Steps for the units used (0.05 mm in my case)
> - Grid does NOT increase to 0.15 mm as expected, but to 0.2270 mm - so
> the imperial step setting is used.
> (The same happens with other steps, e.g. line widths -- which actually
> is more annoying, because I sometimes only notice that I'm using the wrong
> line width after several minutes' work.)
> - Fix: choose View -> Grid Size -> 0.1 mm, and from then on, G (and
> Shift+G, and L etcetera) behave as expected.
>
> So after start-up, imperial step sizes are used, even if the file
> explicitly specifies metric sizes. This is somewhat annoying because
> one always has to explicitly set the grid size via the View menu
> before doing anything.
>
> Also, it appears that the Route Styles option "Save as Default" for new
> designs does not work(*). PCB always starts with the same (imperial) Route
> Styles and default sizes.
> This latter is not so much of a problem any more, because I created a
> script 'pcbcreate' which takes a project name, and then copies PCB, gschem
> and BOM template files to the project directory, with several attributes
> already set correctly.
>
> *: This has been mentioned here before, IIRC
>
> Anyway, it's not really a big deal, just a small bug...
>
> Best regards,
>
> Richard
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/pcb/+bug/1748679/+subscriptions
>

Changed in pcb:
status: In Progress → Fix Committed
Changed in pcb:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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