mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 00:26:01 +08:00
Fix for #10419 - Layer change colour dialog opens off screen in 2.6
This commit is contained in:
parent
9e6d58861f
commit
3042b6d456
@ -2239,7 +2239,7 @@ static std::string get_new_color(const std::string& color)
|
|||||||
data->SetChooseFull(1);
|
data->SetChooseFull(1);
|
||||||
data->SetColour(clr);
|
data->SetColour(clr);
|
||||||
|
|
||||||
wxColourDialog dialog(nullptr, data);
|
wxColourDialog dialog(GUI::wxGetApp().GetTopWindow(), data);
|
||||||
dialog.CenterOnParent();
|
dialog.CenterOnParent();
|
||||||
if (dialog.ShowModal() == wxID_OK)
|
if (dialog.ShowModal() == wxID_OK)
|
||||||
return dialog.GetColourData().GetColour().GetAsString(wxC2S_HTML_SYNTAX).ToStdString();
|
return dialog.GetColourData().GetColour().GetAsString(wxC2S_HTML_SYNTAX).ToStdString();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user