File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Clipping incorrect when printing to PDF.
Original file line number Diff line number Diff line change @@ -1302,10 +1302,12 @@ MCPrinterResult MCCustomPrinterDevice::Begin(const MCPrinterRectangle& p_src_rec
13021302 if (!StartPage ())
13031303 return PRINTER_RESULT_ERROR ;
13041304
1305+ // MW-2014-07-30: [[ Bug 12804 ]] Make sure we get left / top round the right way else clipping
1306+ // is wrong.
13051307 // Calculate the convex integer hull of the source rectangle.
13061308 MCRectangle t_src_rect_hull;
1307- t_src_rect_hull . x = (int2)floor (p_src_rect . top );
1308- t_src_rect_hull . y = (int2)floor (p_src_rect . left );
1309+ t_src_rect_hull . x = (int2)floor (p_src_rect . left );
1310+ t_src_rect_hull . y = (int2)floor (p_src_rect . top );
13091311 t_src_rect_hull . width = (uint2)(ceil (p_src_rect . right) - floor (p_src_rect . left));
13101312 t_src_rect_hull . height = (uint2)(ceil (p_src_rect . bottom) - floor (p_src_rect . top));
13111313
You can’t perform that action at this time.
0 commit comments