Revision 29972 branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/primitive/impl/Ellipse2D.java

View differences:

Ellipse2D.java
341 341
			double angle = UtilFunctions.getAngle(init, end);
342 342
			AffineTransform mT = AffineTransform.getRotateInstance(angle, init
343 343
					.getX(), init.getY());
344
			gp = new GeneralPathX(arc);
344
			gp = new GeneralPathX(arc.getPathIterator(null));
345 345
			gp.transform(mT);
346 346

  
347 347
		}
......
411 411
			double angle = UtilFunctions.getAngle(init, end);
412 412
			AffineTransform mT = AffineTransform.getRotateInstance(angle, init
413 413
					.getX(), init.getY());
414
			gp = new GeneralPathX(arc);
414
			gp = new GeneralPathX(arc.getPathIterator(null));
415 415
			gp.transform(mT);
416 416

  
417 417
		}
......
476 476
			double angle = UtilFunctions.getAngle(init, end);
477 477
			AffineTransform mT = AffineTransform.getRotateInstance(angle, init
478 478
					.getX(), init.getY());
479
			gp = new GeneralPathX(arc);
479
			gp = new GeneralPathX(arc.getPathIterator(null));
480 480
			gp.transform(mT);
481 481
		}
482 482
	}
......
520 520
		double angle = UtilFunctions.getAngle(axis1Start, axis1End);
521 521
		AffineTransform mT = AffineTransform.getRotateInstance(angle,
522 522
				axis1Start.getX(), axis1Start.getY());
523
		GeneralPathX gp = new GeneralPathX(arc);
523
		GeneralPathX gp = new GeneralPathX(arc.getPathIterator(null));
524 524
		gp.transform(mT);
525
		this.gp = new GeneralPathX(gp);
525
		this.gp = new GeneralPathX(gp.getPathIterator(null));
526 526
		this.init = axis1Start;
527 527
		this.end = axis1End;
528 528
		this.ydist = axis2Length;		

Also available in: Unified diff