Skip to content

Commit

Permalink
Merge pull request #597 from Rdornier/fix-zoom-label-pdf
Browse files Browse the repository at this point in the history
Rounding zoom label in pdf
  • Loading branch information
will-moore authored Nov 27, 2024
2 parents bea2e4b + 7a72e52 commit 1c67437
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion omero_figure/scripts/omero/figure_scripts/Figure_To_Pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -1457,7 +1457,11 @@ def draw_labels(self, panel, page):
label_value = " ".join(label_value)

elif prop_nf[0] in ["zoom"]:
label_value = str(panel["zoom"]) + " %"
try:
zoom = round(panel["zoom"])
except Exception:
zoom = panel["zoom"]
label_value = str(zoom) + " %"
new_text.append(label_value if label_value else item.group())
last_idx = item.end()

Expand Down

0 comments on commit 1c67437

Please sign in to comment.