dc->SetUserScale(overallScale, overallScale);
- wxRect rect(marginLeft/scale, marginTop/scale,
- (pageWidth - marginLeft - marginRight)/scale, (pageHeight - marginTop - marginBottom)/scale);
+ wxRect rect((int) (marginLeft/scale), (int) (marginTop/scale),
+ (int) ((pageWidth - marginLeft - marginRight)/scale), (int)((pageHeight - marginTop - marginBottom)/scale));
headerRect = wxRect(0, 0, 0, 0);
int charHeight = dc->GetCharHeight();
- int headerHeight = charHeight + headerMargin/scale;
+ int headerHeight = (int) (charHeight + headerMargin/scale);
headerRect = wxRect(rect.x, rect.y, rect.width, headerHeight);
int charHeight = dc->GetCharHeight();
- int footerHeight = charHeight + footerMargin/scale;
+ int footerHeight = (int) (charHeight + footerMargin/scale);
footerRect = wxRect(rect.x, rect.y + rect.height, rect.width, footerHeight);