[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[gef3d-commits] r585 - trunk/org.eclipse.draw3d/src/java/org/eclipse/draw3d/graphics/optimizer

Author: jvonpilgrim
Date: 2011-06-24 05:58:08 -0400 (Fri, 24 Jun 2011)
New Revision: 585

Modified:
   trunk/org.eclipse.draw3d/src/java/org/eclipse/draw3d/graphics/optimizer/RecordingGraphics.java
Log:
removed access to platform specific fields of graphics.Path

Modified: trunk/org.eclipse.draw3d/src/java/org/eclipse/draw3d/graphics/optimizer/RecordingGraphics.java
===================================================================
--- trunk/org.eclipse.draw3d/src/java/org/eclipse/draw3d/graphics/optimizer/RecordingGraphics.java	2011-06-17 15:20:18 UTC (rev 584)
+++ trunk/org.eclipse.draw3d/src/java/org/eclipse/draw3d/graphics/optimizer/RecordingGraphics.java	2011-06-24 09:58:08 UTC (rev 585)
@@ -476,9 +476,7 @@
 	public void fillPath(Path i_path) {
 		if (i_path == null) // parameter precondition
 			throw new NullPointerException("i_path must not be null");
-		if (i_path.handle == null) // parameter precondition
-			throw new NullPointerException("i_path.handle must not be null");
-
+		
 		// TODO improve that, this is just a quick hack to avoid exceptions
 		PointList pointList = pathToPointList(i_path);
 		fillPolygon(pointList);
@@ -512,8 +510,6 @@
 	public void clipPath(Path i_path) {
 		if (i_path == null) // parameter precondition
 			throw new NullPointerException("i_path must not be null");
-		if (i_path.handle == null) // parameter precondition
-			throw new NullPointerException("i_path.handle must not be null");
 
 		// TODO improve that, this is just a quick hack to avoid exceptions
 		PointList pointList = pathToPointList(i_path);
@@ -543,9 +539,7 @@
 	public void drawPath(Path i_path) {
 		if (i_path == null) // parameter precondition
 			throw new NullPointerException("i_path must not be null");
-		if (i_path.handle == null) // parameter precondition
-			throw new NullPointerException("i_path.handle must not be null");
-
+		
 		// TODO improve that, this is just a quick hack to avoid exceptions
 		PointList pointList = pathToPointList(i_path);
 		drawPolygon(pointList);