Fix of "Color Picker Placement #1496"
Now the color picker from the plater is centered around the associated combo box. Keep your fingers crossed, it seems to be working, but on a two monitor setup the color picker may jump to the other screen.
This commit is contained in:
parent
b7a92b5525
commit
4227499534
1 changed files with 2 additions and 1 deletions
|
@ -246,7 +246,8 @@ PresetComboBox::PresetComboBox(wxWindow *parent, Preset::Type preset_type) :
|
|||
// Swallow the mouse click and open the color picker.
|
||||
auto data = new wxColourData();
|
||||
data->SetChooseFull(1);
|
||||
auto dialog = new wxColourDialog(wxGetApp().mainframe, data);
|
||||
auto dialog = new wxColourDialog(/* wxGetApp().mainframe */this, data);
|
||||
dialog->CenterOnParent();
|
||||
if (dialog->ShowModal() == wxID_OK) {
|
||||
DynamicPrintConfig cfg = *wxGetApp().get_tab(Preset::TYPE_PRINTER)->get_config();
|
||||
|
||||
|
|
Loading…
Reference in a new issue