Temporary back to boost::polygon in 3d-viewer. Fix an assert warning in hashtables.h, when a wxString contains non basic ASCII chars (Bug #1470078).
This commit is contained in:
parent
b9f1ada90b
commit
c1bbf3ecb4
|
@ -354,7 +354,7 @@ void EDA_3D_CANVAS::buildBoard3DView( GLuint aBoardList, GLuint aBodyOnlyList,
|
|||
if( bufferPolys.GetCornersCount() == 0 )
|
||||
continue;
|
||||
|
||||
#if 0 // Set to 1 to use boost::polygon to subtract holes to copper areas
|
||||
#if 1 // Set to 1 to use boost::polygon to subtract holes to copper areas
|
||||
// (due to bugs in boost::polygon, this is deprecated and Clipper is used instead
|
||||
KI_POLYGON_SET currLayerPolyset;
|
||||
KI_POLYGON_SET polysetHoles;
|
||||
|
|
|
@ -107,10 +107,10 @@ struct WXSTRING_HASH : std::unary_function<wxString, std::size_t>
|
|||
|
||||
for( wxString::const_iterator it = aString.begin(); it != aString.end(); ++it )
|
||||
{
|
||||
hash ^= (unsigned char) *it;
|
||||
unsigned ch = static_cast<unsigned>( *it );
|
||||
hash ^= ch;
|
||||
hash *= 16777619;
|
||||
}
|
||||
|
||||
return hash;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue