Skip to content

Commit

Permalink
Merge pull request #1979 from dannyparsons/dialogopen
Browse files Browse the repository at this point in the history
fixed dialogs crashing with no data frame and changed position of data frame control
  • Loading branch information
dannyparsons authored Oct 30, 2016
2 parents 3118edd + f127766 commit 1c550c2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions instat/clsRLink.vb
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ Public Class RLink

clsGetDataNames.SetRCommand(frmMain.clsRLink.strInstatDataObject & "$get_data_names")
chrDataFrameNames = RunInternalScriptGetValue(clsGetDataNames.ToScript()).AsCharacter
lstDataFrameNames.AddRange(chrDataFrameNames)
If chrDataFrameNames IsNot Nothing Then
lstDataFrameNames.AddRange(chrDataFrameNames)
End If
Return lstDataFrameNames
End Function

Expand Down Expand Up @@ -593,7 +595,7 @@ Public Class RLink
clsGetModelNames.AddParameter("data_name", Chr(34) & strDataFrameName & Chr(34))
End If
expModelNames = RunInternalScriptGetValue(clsGetModelNames.ToScript(), bSilent:=True)
If Not expModelNames.Type = Internals.SymbolicExpressionType.Null Then
If expModelNames IsNot Nothing AndAlso (Not expModelNames.Type = Internals.SymbolicExpressionType.Null) Then
chrModelNames = expModelNames.AsCharacter()
If chrModelNames.Length > 0 Then
lstModelNames.AddRange(chrModelNames)
Expand Down
2 changes: 1 addition & 1 deletion instat/ucrDataFrame.Designer.vb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1c550c2

Please sign in to comment.