X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fcf3321f44b0fdf676f41fbc8601e824ff951ff8..1dbcdf2d24c896eb1b4028877964146bf1703c49:/samples/db/dbtest.cpp diff --git a/samples/db/dbtest.cpp b/samples/db/dbtest.cpp index 8b91e280cd..211f6ca7c3 100644 --- a/samples/db/dbtest.cpp +++ b/samples/db/dbtest.cpp @@ -21,10 +21,6 @@ * SYNOPSIS END */ -#ifdef __GNUG__ -#pragma implementation "dbtest.h" -#endif - #include "wx/wxprec.h" #ifdef __BORLANDC__ @@ -1716,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) { @@ -2923,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);