Skip to content

Commit

Permalink
Fix bug with label-line #1234
Browse files Browse the repository at this point in the history
when clicking on a building and rotating the map after (while the cursor is outside of the map), the line from the building to the label was not drawn to the correct label location
  • Loading branch information
Nereboss authored and fritschldwg committed Jan 12, 2024
1 parent 143b75f commit f478667
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -364,8 +364,8 @@ export class CodeMapMouseEventService implements OnDestroy {
}

private drawLabelForSelected(codeMapBuilding: CodeMapBuilding) {
this.clearTemporaryLabel()
if (this.temporaryLabelForSelectedBuilding !== null) {
this.clearTemporaryLabel()
this.codeMapLabelService.clearTemporaryLabel(this.temporaryLabelForSelectedBuilding)
}
if (!codeMapBuilding.node.isLeaf) {
Expand Down

0 comments on commit f478667

Please sign in to comment.