Skip to content

Commit

Permalink
Fix last commit...either condition should use old method
Browse files Browse the repository at this point in the history
  • Loading branch information
AzGilrock committed May 12, 2024
1 parent fa45c66 commit 7e0acf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xLights/LayoutPanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3664,7 +3664,7 @@ void LayoutPanel::FinalizeModel()

// Models that support visitors don't use the ImportXlightsModel method
// If there are import issues we need to try to fix them inside the XmlSerializer
if (!_newModel->SupportsVisitors() && !XmlSerializer::IsXmlSerializerFormat(_newModel->GetModelXml())) {
if (!_newModel->SupportsVisitors() || !XmlSerializer::IsXmlSerializerFormat(_newModel->GetModelXml())) {
xlights->AddTraceMessage("LayoutPanel::FinalizeModel Do the import. " + _lastXlightsModel);
xlights->AddTraceMessage("LayoutPanel::FinalizeModel Model type " + _newModel->GetDisplayAs());
_newModel->ImportXlightsModel(_lastXlightsModel, xlights, min_x, max_x, min_y, max_y);
Expand Down

0 comments on commit 7e0acf2

Please sign in to comment.