diff --git a/gerbview/rs274x.cpp b/gerbview/rs274x.cpp index 21f859b394..77141aae7b 100644 --- a/gerbview/rs274x.cpp +++ b/gerbview/rs274x.cpp @@ -2,7 +2,7 @@ * 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) 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 * modify it under the terms of the GNU General Public License @@ -176,7 +176,7 @@ static const wxString fromGerberString( const wxString& aGbrString ) digit -= 'a'; else digit = 0; - value += digit && 0xFF; + value += digit & 0xFF; } text.Append( wxUniChar( value ) );