Pcbnew: fix assertion in footprint hashing algorithm.
This commit is contained in:
parent
13f081549c
commit
94119b365d
|
@ -2,7 +2,7 @@
|
||||||
* This program source code file is part of KiCad, a free EDA CAD application.
|
* This program source code file is part of KiCad, a free EDA CAD application.
|
||||||
*
|
*
|
||||||
* Copyright (C) 2017 CERN
|
* Copyright (C) 2017 CERN
|
||||||
* Copyright (C) 2020 KiCad Developers, see AUTHORS.txt for contributors.
|
* Copyright (C) 2020-2021 KiCad Developers, see AUTHORS.txt for contributors.
|
||||||
* @author Maciej Suminski <maciej.suminski@cern.ch>
|
* @author Maciej Suminski <maciej.suminski@cern.ch>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or
|
* This program is free software; you can redistribute it and/or
|
||||||
|
@ -143,7 +143,9 @@ size_t hash_fp_item( const EDA_ITEM* aItem, int aFlags )
|
||||||
hash_combine( ret, shape->GetShape() );
|
hash_combine( ret, shape->GetShape() );
|
||||||
hash_combine( ret, shape->GetWidth() );
|
hash_combine( ret, shape->GetWidth() );
|
||||||
hash_combine( ret, shape->IsFilled() );
|
hash_combine( ret, shape->IsFilled() );
|
||||||
hash_combine( ret, shape->GetRadius() );
|
|
||||||
|
if( shape->GetShape() == SHAPE_T::ARC || shape->GetShape() == SHAPE_T::CIRCLE )
|
||||||
|
hash_combine( ret, shape->GetRadius() );
|
||||||
|
|
||||||
if( aFlags & HASH_POS )
|
if( aFlags & HASH_POS )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue