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: do not override label text on unmodified labels #217

Merged
merged 1 commit into from
Oct 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* http://rtsys.informatik.uni-kiel.de/kieler
*
* Copyright ${year} by
* Copyright 2013-2024 by
* + Kiel University
* + Department of Computer Science
* + Real-Time and Embedded Systems Group
Expand Down Expand Up @@ -764,7 +764,7 @@ public Boolean caseElkLabel(final ElkLabel layoutLabel) {
// special property
LabelManagementResult managementResult =
layoutLabel.getProperty(KlighdOptions.LABELS_MANAGEMENT_RESULT);
if (managementResult != LabelManagementResult.UNMANAGED) {
if (managementResult == LabelManagementResult.MANAGED_MODIFIED) {
// TODO: This may in the future set the KText's text instead.
// However, doing so now doesn't do anything yet...
label.setProperty(KlighdOptions.LABELS_TEXT_OVERRIDE,
Expand Down
Loading