Skip to content

Commit

Permalink
Merge pull request #1156 from mcneel/1.23
Browse files Browse the repository at this point in the history
`TaskDialog` only allows 4 command buttons.
  • Loading branch information
kike-garbo authored Aug 5, 2024
2 parents d367f02 + 1ee0a5c commit f04e7eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RhinoInside.Revit.Loader/Loader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ static Distribution PickDistribution()
}
)
{
for (int d = 0; d < 4 && d < available.Length; d++)
for (int d = 0; d < 4 && d < Math.Min(available.Length, 4); d++)
{
var distribution = available[d];
taskDialog.AddCommandLink
Expand Down

0 comments on commit f04e7eb

Please sign in to comment.