FIX: Button text render pos on macOS

Change-Id: Icaa8cb95d81b3f906507dc74a3fcffc77a535fdb
Jira: STUDIO-8026
(cherry picked from commit c1e4be1652e682a53b13a403e6ae6b2d00fddda6)
This commit is contained in:
chunmao.guo 2024-09-24 11:38:39 +08:00 committed by Noisyfox
parent 51151a89c5
commit 30bce5df45

View file

@ -359,7 +359,7 @@ void Button::render(wxDC& dc)
dc.DrawRectangle(pt, textSize.GetSize());
#endif
#ifdef __WXOSX__
pt.y -= textSize.x / 2;
pt.y -= this->textSize.x / 2;
#endif
#ifdef __APPLE__
if (Slic3r::is_mac_version_15()) {