From: Mattia Barbon Date: Sun, 13 Apr 2003 14:01:28 +0000 (+0000) Subject: Compilation fix. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/e34dcad290e5129f0e5818fcc89868dd28729b75 Compilation fix. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20191 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/prntdlgg.cpp b/src/generic/prntdlgg.cpp index df92048959..38dd0fdfee 100644 --- a/src/generic/prntdlgg.cpp +++ b/src/generic/prntdlgg.cpp @@ -700,16 +700,21 @@ wxGenericPageSetupDialog::~wxGenericPageSetupDialog() { } +static inline wxString IntToString( long value ) +{ + return wxString::Format(wxT("%ld"), value); +} + bool wxGenericPageSetupDialog::TransferDataToWindow() { if (m_marginLeftText) - m_marginLeftText->SetValue(IntToString((int) m_pageData.GetMarginTopLeft().x)); + m_marginLeftText->SetValue(IntToString(m_pageData.GetMarginTopLeft().x)); if (m_marginTopText) - m_marginTopText->SetValue(IntToString((int) m_pageData.GetMarginTopLeft().y)); + m_marginTopText->SetValue(IntToString(m_pageData.GetMarginTopLeft().y)); if (m_marginRightText) - m_marginRightText->SetValue(IntToString((int) m_pageData.GetMarginBottomRight().x)); + m_marginRightText->SetValue(IntToString(m_pageData.GetMarginBottomRight().x)); if (m_marginBottomText) - m_marginBottomText->SetValue(IntToString((int) m_pageData.GetMarginBottomRight().y)); + m_marginBottomText->SetValue(IntToString(m_pageData.GetMarginBottomRight().y)); if (m_orientationRadioBox) {