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

Reverting the change to ArrowAndNoteBox made in pull request #1777 #1780

Merged

Conversation

jimnelson372
Copy link
Contributor

Hi @arnaudroques,

As I commented in pull request #1777, I was mistaken in thinking the following block of code in ArrowAndNoteBox was unnecessary (or even incorrect).

if (noteBox.getNotePosition() == NotePosition.RIGHT) {
  result += noteBox.getRightShift(arrow.getStartingY());
}

I now understand that it is necessary, so I have added this block back in. All the other fixes in pull request #1777 still work fine, independently of this change to ArrowAndNoteBox. And the example you gave me from your regression test:

@startuml
A -> B : a
note right: Note
activate B
B --> A : b
deactivate B
@enduml

once again works as expected:
testgroupleftself

I will still look at how to add the regression tests to the test directory and generate a pull request when I have created regression tests for the examples I used to demonstrate and to (manually) test all the fixes in pull request #1777.

Regards,

Jim Nelson
jimnelson372

@arnaudroques arnaudroques merged commit f954c6c into plantuml:master May 15, 2024
9 checks passed
@jimnelson372 jimnelson372 deleted the revertArrowAndNoteBoxChange branch May 15, 2024 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants