From 177903e23693f61078bba462b35d96c61984341e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Wed, 28 Jun 2000 18:26:54 +0000 Subject: [PATCH] wxPrintPaperType::GetName now uses wxGetTranslation to obtain correct paper name git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7655 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/paper.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/wx/paper.h b/include/wx/paper.h index 1d9a7bb750..f81b155079 100644 --- a/include/wx/paper.h +++ b/include/wx/paper.h @@ -19,6 +19,7 @@ #include "wx/defs.h" #include "wx/event.h" #include "wx/cmndata.h" +#include "wx/intl.h" /* * Paper type: see defs.h for wxPaperSize enum. @@ -40,7 +41,7 @@ public: // platformId is a platform-specific id, such as in Windows, DMPAPER_... wxPrintPaperType(wxPaperSize paperId, int platformId, const wxString& name, int w, int h); - inline const wxString& GetName() const { return m_paperName; } + inline wxString GetName() const { return wxGetTranslation(m_paperName); } inline wxPaperSize GetId() const { return m_paperId; } inline int GetPlatformId() const { return m_platformId; }