Skip to content

[#899] Fix TypeError when floating the Visual Whitepoint Editor panel - #905

Merged
eoyilmaz merged 1 commit into
developfrom
899-wx-visual-whitepoint-editor-pin-crash
Jul 20, 2026
Merged

[#899] Fix TypeError when floating the Visual Whitepoint Editor panel#905
eoyilmaz merged 1 commit into
developfrom
899-wx-visual-whitepoint-editor-pin-crash

Conversation

@eoyilmaz

@eoyilmaz eoyilmaz commented Jul 20, 2026

Copy link
Copy Markdown
Owner

Summary

  • float_pane_handler() in DisplayCAL/wx_visual_whitepoint_editor.py computed the floating position using true division (/), producing float coordinates
  • wx.Point (invoked via FloatingPosition()) rejects float arguments, so clicking the pin/float button on the docked panel crashed with a TypeError
  • Cast the computed coordinates to int before passing them to FloatingPosition()
  • Bumped version to 3.10.0.dev60

Fixes #899

Test plan

  • Verified the file parses (ast.parse)
  • Manually float/dock the panel in the Visual Whitepoint Editor (wx build) to confirm no crash

…, bump version to 3.10.0.dev60

`float_pane_handler()` computed `pos` using true division, yielding
`float` components that `wx.Point(*pos)` rejects. Cast the final
coordinates to `int` before passing them to `FloatingPosition()`.
@eoyilmaz
eoyilmaz merged commit 910c949 into develop Jul 20, 2026
14 of 15 checks passed
@eoyilmaz
eoyilmaz deleted the 899-wx-visual-whitepoint-editor-pin-crash branch July 20, 2026 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Visual whitepoint editor: pinning the panel crashes with TypeError (wx.Point float args)

1 participant