operator is used.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31627
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxPageSetupDialogData& operator=(const wxPrintData& data);
wxPrintData& GetPrintData() { return m_printData; }
- void SetPrintData(const wxPrintData& printData) { m_printData = printData; }
+ void SetPrintData(const wxPrintData& printData);
private:
wxSize m_paperSize; // The dimensions selected by the user (on return, same as in wxPrintData?)
wxPageSetupDialogData& wxPageSetupDialogData::operator=(const wxPrintData& data)
{
m_printData = data;
+ CalculatePaperSizeFromId();
return *this;
}
CalculatePaperSizeFromId();
}
+void wxPageSetupDialogData::SetPrintData(const wxPrintData& printData)
+{
+ m_printData = printData;
+ CalculatePaperSizeFromId();
+}
+
// Use paper size defined in this object to set the wxPrintData
// paper id
void wxPageSetupDialogData::CalculateIdFromPaperSize()