Skip to content

Commit

Permalink
Fix for #10419 - Layer change colour dialog opens off screen in 2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
YuSanka committed Dec 21, 2023
1 parent 9e6d588 commit 3042b6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/slic3r/GUI/DoubleSlider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2239,7 +2239,7 @@ static std::string get_new_color(const std::string& color)
data->SetChooseFull(1);
data->SetColour(clr);

wxColourDialog dialog(nullptr, data);
wxColourDialog dialog(GUI::wxGetApp().GetTopWindow(), data);
dialog.CenterOnParent();
if (dialog.ShowModal() == wxID_OK)
return dialog.GetColourData().GetColour().GetAsString(wxC2S_HTML_SYNTAX).ToStdString();
Expand Down

0 comments on commit 3042b6d

Please sign in to comment.