+wxBitmapRefData::wxBitmapRefData(const wxBitmapRefData &tocopy)
+{
+ m_nQuality = tocopy.m_nQuality;
+ m_pSelectedInto = NULL; // don't copy this
+ m_nNumColors = tocopy.m_nNumColors;
+
+ // copy the mask
+ if (tocopy.m_pBitmapMask)
+ m_pBitmapMask = new wxMask(*tocopy.m_pBitmapMask);
+
+ m_hBitmap = wxCopyBmp(tocopy.m_hBitmap);
+}
+