Skip to content

Commit

Permalink
Merge branch 'main' into OutputTableUpdates
Browse files Browse the repository at this point in the history
  • Loading branch information
Brennan1994 authored Nov 26, 2024
2 parents f7b2f71 + 495dd90 commit 27f9197
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ private void SwitchToOcctypeLinkingVM()

public bool NextButtonClicked()
{
if (string.IsNullOrWhiteSpace(Storage.Connection.Instance.ProjectionFile) && ((TerrainElement)StudyCache.GetParentElementOfType<TerrainOwnerElement>().Elements[0] == null))
if (string.IsNullOrWhiteSpace(Storage.Connection.Instance.ProjectionFile) && (StudyCache.GetParentElementOfType<TerrainOwnerElement>().Elements.Count == 0))
{
System.Windows.MessageBox.Show("Please set your project projection in the study properties.", "Missing Projection", MessageBoxButton.OK, MessageBoxImage.Error);
return false;
Expand Down

0 comments on commit 27f9197

Please sign in to comment.