Skip to content

Commit

Permalink
fix #1215
Browse files Browse the repository at this point in the history
The measurement prefix (R or Ø) was prepended to
overridden text for radius and diameter dimensions.
  • Loading branch information
mozman committed Dec 5, 2024
1 parent 0c1bbb8 commit 3ff4011
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions notes/pages/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
- BUGFIX: `BlocksSection.delete_block()` will not delete layout blocks in safe mode.
- BUGFIX: copying dynamic blocks via clipboard removes dynamic features
- {{issue 1203}}
- BUGFIX: measurement prefix was prepended to overridden text for radius and diameter dimensions
- {{issue 1215}}
- ## Version 1.3.4 - 2024-10-15
id:: 66d2bce8-c48a-461d-8e5b-534fe26d1f5b
- ((65ed4f6c-edc8-4390-880c-c604a3fa5ec0))
Expand Down
4 changes: 2 additions & 2 deletions src/ezdxf/render/dim_radius.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ def __init__(
super().__init__(dim_style, color, scale)
self.text_prefix = prefix

def text_override(self, measurement: float) -> str:
text = super().text_override(measurement)
def format_text(self, value: float) -> str:
text = super().format_text(value)
if text and text[0] != self.text_prefix:
text = self.text_prefix + text
return text
Expand Down

0 comments on commit 3ff4011

Please sign in to comment.