- // When printing we have an extra clipped region,\r
- // the Printable page which we need to account for here\r
- Shape clip = g.getClip();\r
- if (clip == null)\r
- {\r
- g.setClip(0, 0, cWidth * av.charWidth, canvasHeight);\r
- }\r
- else\r
- {\r
- g.setClip(0,\r
- (int) clip.getBounds().y,\r
- cWidth * av.charWidth,\r
- (int) clip.getBounds().height\r
- );\r
- }\r