Skip to content

Commit

Permalink
More generic change - handle & in export #5017
Browse files Browse the repository at this point in the history
  • Loading branch information
derwin12 committed Jan 12, 2025
1 parent c1fe519 commit 5857c65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion xLights/models/CustomModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1705,7 +1705,6 @@ void CustomModel::ExportXlightsModel()
}
wxString state = SerialiseState();
if (state != "") {
state.Replace("&", "&", true);
f.Write(state);
}
wxString submodel = SerialiseSubmodel();
Expand Down
2 changes: 2 additions & 0 deletions xLights/models/Model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2543,6 +2543,7 @@ wxString Model::SerialiseFace() const
}
res += "/>\n";
}
res.Replace("&", "&", true);
}

return res;
Expand Down Expand Up @@ -2685,6 +2686,7 @@ wxString Model::SerialiseState() const
}
res += "/>\n";
}
res.Replace("&", "&", true);
}

return res;
Expand Down

0 comments on commit 5857c65

Please sign in to comment.