Skip to content

Commit

Permalink
Merge pull request OpenShot#4738 from rjnewsham/rn/tableview_color_fl…
Browse files Browse the repository at this point in the history
…oat_to_int

Changing floats to integers to prevent crash with Python 3.10
  • Loading branch information
ferdnyc authored Mar 31, 2022
2 parents 11523c5 + be9a9b9 commit ff03c02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/windows/views/properties_tableview.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ def doubleClickedCB(self, model_index):
blue = cur_property[1]["blue"]["value"]

# Show color dialog
currentColor = QColor(red, green, blue)
currentColor = QColor(int(red), int(green), int(blue))
log.debug("Launching ColorPicker for %s", currentColor.name())
ColorPicker(
currentColor, parent=self, title=_("Select a Color"),
Expand Down

0 comments on commit ff03c02

Please sign in to comment.