X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8907154c1a8a6882c6797d1f16393ddfb23e7f3a..0797d64777de79f01a1580100f983e9a76d34f45:/samples/db/dbtest.cpp diff --git a/samples/db/dbtest.cpp b/samples/db/dbtest.cpp index 805976759f..211f6ca7c3 100644 --- a/samples/db/dbtest.cpp +++ b/samples/db/dbtest.cpp @@ -1712,7 +1712,7 @@ bool CeditorDlg::Initialize() void CeditorDlg::OnSelectPict() { - wxFileDialog dlg(this, wxT("Choose an image file less than 60K"), wxEmptyString, wxEmptyString, wxT("JPEG files (*.jpg)|*.jpg|GIF files (*.gif)|*.gif|BMP files (*.bmp)|*.bmp|All Files (*.*)|*.*"), wxOPEN); + wxFileDialog dlg(this, wxT("Choose an image file less than 60K"), wxEmptyString, wxEmptyString, wxT("JPEG files (*.jpg)|*.jpg|GIF files (*.gif)|*.gif|BMP files (*.bmp)|*.bmp|All Files (*.*)|*.*"), wxFD_OPEN); if (dlg.ShowModal() == wxID_OK) { @@ -2919,7 +2919,7 @@ m_pImage(NULL) if(m_pImage->Ok()) { - m_pBmp = new wxBitmap(m_pImage); + m_pBmp = new wxBitmap(*m_pImage); m_pDisplayBmp = new wxStaticBitmap(this, IMAGE_DIALOG_STATIC_BMP, *m_pBmp, wxPoint(5,5), wxDefaultSize); SetSize(m_pBmp->GetWidth() + 10, m_pBmp->GetHeight() + 30);