Fix RS274X Unicode decoding

This commit is contained in:
Chris Pavlina 2016-08-08 13:21:27 -04:00
parent cdc951d0a3
commit e5a5f9552b
1 changed files with 2 additions and 2 deletions

View File

@ -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) 2007-2016 Jean-Pierre Charras jp.charras at wanadoo.fr * Copyright (C) 2007-2016 Jean-Pierre Charras jp.charras at wanadoo.fr
* Copyright (C) 1992-2016 KiCad Developers, see AUTHOR.txt for contributors. * Copyright (C) 1992-2016 KiCad Developers, see AUTHORS.txt for contributors.
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License * modify it under the terms of the GNU General Public License
@ -176,7 +176,7 @@ static const wxString fromGerberString( const wxString& aGbrString )
digit -= 'a'; digit -= 'a';
else digit = 0; else digit = 0;
value += digit && 0xFF; value += digit & 0xFF;
} }
text.Append( wxUniChar( value ) ); text.Append( wxUniChar( value ) );