Skip to content

Commit

Permalink
if res = wRM.LoadData => null
Browse files Browse the repository at this point in the history
if res = wRM.LoadData => null
  • Loading branch information
triroakenshield committed Mar 4, 2020
1 parent 9b76a0b commit c634359
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RosReestrImp/MyCommands.cs
Expand Up @@ -263,7 +263,7 @@ public void ImportXML()
if (openFileDialog1.ShowDialog() == DialogResult.OK)
{
List<Data.DataLayer> res = wRM.LoadData(openFileDialog1.FileName);
res.ForEach(l => DrawLayer(l));
if (res != null) res.ForEach(l => DrawLayer(l));
}
}

Expand All @@ -281,7 +281,7 @@ public void ImportXMLwithRule()
if (openFileDialog1.ShowDialog() == DialogResult.OK)
{
List<Data.DataLayer> res = wRM.LoadData(openFileDialog1.FileName);
res.ForEach(l => DrawLayer(l));
if (res != null) res.ForEach(l => DrawLayer(l));
}
}
}
Expand Down

0 comments on commit c634359

Please sign in to comment.