public void paint(Graphics g) {
Roi roi = imp.getRoi();
if (roi!=null || overlay!=null || showAllOverlay!=null || Prefs.paintDoubleBuffered) {
if (roi!=null) roi.updatePaste();
if (!IJ.isMacOSX() && imageWidth!=0) {
<BUG>paintDoubleBuffered(g);
return;</BUG>
}
}
try {

public void paint(Graphics g) {
Roi roi = imp.getRoi();
if (roi!=null || overlay!=null || showAllOverlay!=null || Prefs.paintDoubleBuffered) {
if (roi!=null) roi.updatePaste();
if (!IJ.isMacOSX() && imageWidth!=0) {
paintDoubleBuffered(g);
setPaintPending(false);
return;
}
}
try {
