Fixed crash when starting the application on a secondary monitor
This commit is contained in:
parent
7f1bea1dc8
commit
5fc82cecfe
1 changed files with 2 additions and 2 deletions
|
@ -140,8 +140,6 @@ PrintHostQueueDialog::PrintHostQueueDialog(wxWindow *parent)
|
||||||
{
|
{
|
||||||
const auto em = GetTextExtent("m").x;
|
const auto em = GetTextExtent("m").x;
|
||||||
|
|
||||||
SetSize(wxSize(HEIGHT * em, WIDTH * em));
|
|
||||||
|
|
||||||
auto *topsizer = new wxBoxSizer(wxVERTICAL);
|
auto *topsizer = new wxBoxSizer(wxVERTICAL);
|
||||||
|
|
||||||
job_list = new wxDataViewListCtrl(this, wxID_ANY);
|
job_list = new wxDataViewListCtrl(this, wxID_ANY);
|
||||||
|
@ -168,6 +166,8 @@ PrintHostQueueDialog::PrintHostQueueDialog(wxWindow *parent)
|
||||||
topsizer->Add(btnsizer, 0, wxEXPAND);
|
topsizer->Add(btnsizer, 0, wxEXPAND);
|
||||||
SetSizer(topsizer);
|
SetSizer(topsizer);
|
||||||
|
|
||||||
|
SetSize(wxSize(HEIGHT * em, WIDTH * em));
|
||||||
|
|
||||||
job_list->Bind(wxEVT_DATAVIEW_SELECTION_CHANGED, [this](wxDataViewEvent&) { on_list_select(); });
|
job_list->Bind(wxEVT_DATAVIEW_SELECTION_CHANGED, [this](wxDataViewEvent&) { on_list_select(); });
|
||||||
|
|
||||||
btn_cancel->Bind(wxEVT_BUTTON, [this](wxCommandEvent&) {
|
btn_cancel->Bind(wxEVT_BUTTON, [this](wxCommandEvent&) {
|
||||||
|
|
Loading…
Reference in a new issue