From 3c24cb484970ca00d971cb9af0f73e39ca5b1f9e Mon Sep 17 00:00:00 2001 From: Xun Li Date: Wed, 9 Oct 2024 10:12:27 -0700 Subject: [PATCH] Update ConnectDatasourceDlg.cpp --- DialogTools/ConnectDatasourceDlg.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DialogTools/ConnectDatasourceDlg.cpp b/DialogTools/ConnectDatasourceDlg.cpp index 0951f78e..8dfca9c1 100644 --- a/DialogTools/ConnectDatasourceDlg.cpp +++ b/DialogTools/ConnectDatasourceDlg.cpp @@ -976,9 +976,9 @@ void ConnectDatasourceDlg::InitSamplePanel() { AddSampleItem(sample_sizer, sample_scrl, sample_name, sample_meta_url, ds_layername, ds_thumb, base_xrcid_sample_thumb + static_cast(i)); } - sample_scrl->SetSizer(sizer); + sample_scrl->SetSizer(sample_sizer); sample_scrl->Layout(); - sizer->Fit(sample_scrl); + sample_sizer->Fit(sample_scrl); } sizer->Add(sample_scrl, 1, wxEXPAND | wxRIGHT, 5);