Skip to content
Snippets Groups Projects
Unverified Commit ce112863 authored by Gagik Vardanyan's avatar Gagik Vardanyan Committed by GitHub
Browse files

Merge pull request #27721 from martyngigg/27717-float-conversion-warnings-plotoptions

Avoid new implicit float to int conversion warnings in Python 3.8
parents 4608091f f44dafc5
No related branches found
No related tags found
No related merge requests found
......@@ -56,7 +56,7 @@ class LegendTabWidgetPresenter:
# Converts alpha value (opacity value between 0 and 1) to transparency percentage.
if int(matplotlib.__version__[0]) >= 2:
transparency = 100-(legend_props.transparency*100)
transparency = int(100 - (legend_props.transparency*100))
self.view.set_transparency_spin_box(transparency)
self.view.set_transparency_slider(transparency)
self.view.set_entries_font(legend_props.entries_font)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment