diff --git a/include/wx/cmndata.h b/include/wx/cmndata.h index 0688f00f38..8a637910e3 100644 --- a/include/wx/cmndata.h +++ b/include/wx/cmndata.h @@ -343,7 +343,7 @@ public: // paper size id member as well. void SetPaperSize(const wxSize& sz); - void SetPaperId(wxPaperSize& id) { m_printData.SetPaperId(id); }; + void SetPaperId(wxPaperSize id) { m_printData.SetPaperId(id); }; // Sets the wxPrintData id, plus the paper width/height if found in the paper database. void SetPaperSize(wxPaperSize id);