kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #18878
Re: [PATCH] Remove backtracking wires in eeschema
Le 22/06/2015 22:50, Chris Pavlina a écrit :
> If you place a wire segment and then backtrack over it, you end up with
> a broken wire in the end:
>
> http://misc.c4757p.com/backtrack.mp4
>
> This is because the two segments are merged together, rather than the
> second *subtracting* from the first, even though the latter case is the
> way it's shown as you're drawing. This patch fixes that by adding a
> function to erase backtracks.
>
> --
> Chris
>
Thanks for this patch, it is very usefull.
I noticed you are using a dynamic cast in line:
SCH_LINE *line = dynamic_cast<SCH_LINE*>( p );
but the variable line is used without any test for NULL.
Can you have a look at this (use a static cast or a test for NULL) ?
Thanks.
--
Jean-Pierre CHARRAS
Follow ups
References