From 416b4e5c6b85e03af7b85fa557a457aa2207e245 Mon Sep 17 00:00:00 2001 From: orbiter Date: Mon, 11 Sep 2006 08:17:55 +0000 Subject: [PATCH] ups git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2542 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/ymage/ymageMatrix.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/de/anomic/ymage/ymageMatrix.java b/source/de/anomic/ymage/ymageMatrix.java index 70a77a457..ed6ffbdbf 100644 --- a/source/de/anomic/ymage/ymageMatrix.java +++ b/source/de/anomic/ymage/ymageMatrix.java @@ -75,7 +75,7 @@ public class ymageMatrix implements Cloneable { private boolean grabComplementary = false; public ymageMatrix(ymageMatrix matrix) throws RuntimeException { - if (serverMemory.available(1024 * 1024 + 3 * width * height, true)) throw new RuntimeException("ymage: not enough memory (" + serverMemory.available() + ") available"); + if (!(serverMemory.available(1024 * 1024 + 3 * width * height, true))) throw new RuntimeException("ymage: not enough memory (" + serverMemory.available() + ") available"); // clones the matrix this.width = matrix.width; this.height = matrix.height; @@ -93,7 +93,7 @@ public class ymageMatrix implements Cloneable { } public ymageMatrix(int width, int height, long backgroundColor) { - if (serverMemory.available(1024 * 1024 + 3 * width * height, true)) throw new RuntimeException("ymage: not enough memory (" + serverMemory.available() + ") available"); + if (!(serverMemory.available(1024 * 1024 + 3 * width * height, true))) throw new RuntimeException("ymage: not enough memory (" + serverMemory.available() + ") available"); this.width = width; this.height = height; this.defaultColR = 0xFF;