compilation fix in FindPaperType() after latest change
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60702 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -250,11 +250,11 @@ wxPrintPaperType *wxPrintPaperDatabase::FindPaperType(wxPaperSize id)
|
|||||||
// are likely to be taken into account first. This fixes problems with,
|
// are likely to be taken into account first. This fixes problems with,
|
||||||
// for example, Letter reverting to A4 in the page setup dialog because
|
// for example, Letter reverting to A4 in the page setup dialog because
|
||||||
// it was wrongly translated to Note.
|
// it was wrongly translated to Note.
|
||||||
size_t i;
|
const wxSize sz = GetSize(id);
|
||||||
for (i = 0; i < GetCount(); i++)
|
for ( size_t i = 0; i < GetCount(); i++ )
|
||||||
{
|
{
|
||||||
wxPrintPaperType* paperType = Item(i);
|
wxPrintPaperType* const paperType = Item(i);
|
||||||
wxSize paperSize = paperType->GetSize() ;
|
const wxSize paperSize = paperType->GetSize() ;
|
||||||
if ( abs(paperSize.x - sz.x) < 10 && abs(paperSize.y - sz.y) < 10 )
|
if ( abs(paperSize.x - sz.x) < 10 && abs(paperSize.y - sz.y) < 10 )
|
||||||
return paperType;
|
return paperType;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user