]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/db/dbtest.cpp
[ 1493802 ] Allow multiple wxComboCtrl::SetPopupControl calls.
[wxWidgets.git] / samples / db / dbtest.cpp
index 805976759faffec7134535621d534f2d640f0ce6..f54a13bcf6d4018af32118fc76f2c48c92dce18b 100644 (file)
@@ -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);