diff options
Diffstat (limited to 'qadevOOo/runner/graphical/ImageHelper.java')
-rw-r--r-- | qadevOOo/runner/graphical/ImageHelper.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/qadevOOo/runner/graphical/ImageHelper.java b/qadevOOo/runner/graphical/ImageHelper.java index b1ec0ca649de..8f4249697192 100644 --- a/qadevOOo/runner/graphical/ImageHelper.java +++ b/qadevOOo/runner/graphical/ImageHelper.java @@ -29,7 +29,6 @@ class ImageHelper private Image m_aImage; private int[] m_aPixels; private int m_w = 0; - private int m_h = 0; private ImageHelper(Image _aImage) @@ -38,11 +37,11 @@ class ImageHelper // grab all (consume much memory) m_w = getWidth(); - m_h = getHeight(); + int h = getHeight(); int x = 0; int y = 0; - m_aPixels = new int[m_w * m_h]; - PixelGrabber pg = new PixelGrabber(m_aImage, x, y, m_w, m_h, m_aPixels, 0, m_w); + m_aPixels = new int[m_w * h]; + PixelGrabber pg = new PixelGrabber(m_aImage, x, y, m_w, h, m_aPixels, 0, m_w); try { pg.grabPixels(); |