git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4099
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
}
wxBitmapDataObject data;
}
wxBitmapDataObject data;
- if ( !wxTheClipboard->GetData(&data) )
+ if ( !wxTheClipboard->GetData(data) )
{
wxLogError(_T("Can't paste bitmap from the clipboard"));
}
{
wxLogError(_T("Can't paste bitmap from the clipboard"));
}
- if ( !wxTheClipboard->GetData(&text) )
+ if ( !wxTheClipboard->GetData(text) )
{
wxLogError(_T("Can't paste data from the clipboard"));
}
{
wxLogError(_T("Can't paste data from the clipboard"));
}
void DnDShapeFrame::OnPasteShape(wxCommandEvent& event)
{
DnDShapeDataObject shapeDataObject(NULL);
void DnDShapeFrame::OnPasteShape(wxCommandEvent& event)
{
DnDShapeDataObject shapeDataObject(NULL);
- if ( wxTheClipboard->GetData(&shapeDataObject) )
+ if ( wxTheClipboard->GetData(shapeDataObject) )
{
SetShape(shapeDataObject.GetShape());
}
{
SetShape(shapeDataObject.GetShape());
}
void DnDShapeFrame::OnPaint(wxPaintEvent& event)
{
if ( m_shape )
void DnDShapeFrame::OnPaint(wxPaintEvent& event)
{
if ( m_shape )
- m_shape->Draw(wxPaintDC(this));
+ {
+ wxPaintDC dc(this);
+
+ m_shape->Draw(dc);
+ }
}
// ----------------------------------------------------------------------------
}
// ----------------------------------------------------------------------------