Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix connectable position adder attributes #536

Merged
merged 2 commits into from
Sep 16, 2024

Conversation

ghazwarhili
Copy link
Contributor

No description provided.

Copy link
Contributor

@EtienneLt EtienneLt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if (connectionNameReport != null || connectionDirectionReport != null || connectionPositionReport != null) {
adder.add();
}

@@ -664,6 +664,7 @@ private void createNewConnectivityPosition(ConnectablePositionAdder<?> adder,
CONNECTION_NAME_FIELD_NAME);
if (connectionNameReport != null) {
reports.add(connectionNameReport);
adder.add();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it will add several times the extension if several attributes are not null

Copy link

@ghazwarhili ghazwarhili merged commit e9fad04 into main Sep 16, 2024
3 checks passed
@ghazwarhili ghazwarhili deleted the fix-connectablePosition-adder branch September 16, 2024 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants