\r
if (av.getWrapAlignment())\r
{\r
- drawWrappedPanel(gg, getSize().width, getSize().height, av.startRes);\r
+ drawWrappedPanel(gg, imgWidth, imgHeight, av.startRes);\r
}\r
else\r
{\r
drawNorthScale(g, startRes, endx, ypos);\r
}\r
\r
- // 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
+\r
+ if(g.getClip()==null)\r
+ g.setClip(0, 0, cWidth * av.charWidth, canvasHeight);\r
+\r
\r
drawPanel(g, startRes, endx, 0, al.getHeight(), startRes, 0, ypos);\r
- g.setClip(clip);\r
+ g.setClip(null);\r
g.translate( -LABEL_WEST, 0);\r
\r
ypos += cHeight;\r