Assign "user_defined" value properly for downloaded Gecko codes.

Fixes Issue 7156.
This commit is contained in:
Shawn Hoffman 2014-04-08 14:49:53 -07:00
parent 7d8604ac1c
commit 0c145dd1aa
1 changed files with 1 additions and 0 deletions

View File

@ -229,6 +229,7 @@ void CodeConfigPanel::DownloadCodes(wxCommandEvent&)
// stop at [ character (beginning of contributor name)
std::getline(ssline, gcode.name, '[');
gcode.name = StripSpaces(gcode.name);
gcode.user_defined = true;
// read the code creator name
std::getline(ssline, gcode.creator, ']');
read_state = 1;