aboutsummaryrefslogtreecommitdiffstats
path: root/plugin
diff options
context:
space:
mode:
authorJiri Vanek <[email protected]>2013-06-06 16:57:14 +0200
committerJiri Vanek <[email protected]>2013-06-06 16:57:14 +0200
commitb88f1e63c7a8eb23ec4ec27726d2fe6a9968f1d6 (patch)
tree7c60b990a117be4fb5c31723499613cdd686aec2 /plugin
parent11fd7b8b63735365f41cb34133daf29c295d749a (diff)
Silenced deployment.properties and zero size applet exceptions with tests
Diffstat (limited to 'plugin')
-rw-r--r--plugin/icedteanp/java/sun/applet/PluginAppletViewer.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugin/icedteanp/java/sun/applet/PluginAppletViewer.java b/plugin/icedteanp/java/sun/applet/PluginAppletViewer.java
index b66f52b..7742035 100644
--- a/plugin/icedteanp/java/sun/applet/PluginAppletViewer.java
+++ b/plugin/icedteanp/java/sun/applet/PluginAppletViewer.java
@@ -1547,7 +1547,9 @@ public class PluginAppletViewer extends XEmbeddedFrame
// If the image or the graphics don't exist, create new ones
if (bufFrameImg == null || bufFrameImgGraphics == null) {
- bufFrameImg = createImage(getWidth(), getHeight());
+ // although invisible applets do not have right to paint
+ // we rather paint to 1x1 to be sure all callbacks will be completed
+ bufFrameImg = createImage(Math.max(1, getWidth()), Math.max(1, getHeight()));
bufFrameImgGraphics = bufFrameImg.getGraphics();
}