Index: src/Common/NetTopologySuite/Precision/EnhancedPrecisionOp.cs
===================================================================
diff -u -r8f6ae890fed8e8eae3a32f9c0498a10f82e0ddf9 -r5fc71a385897af92ccb092f2f969b5709afab85a
--- src/Common/NetTopologySuite/Precision/EnhancedPrecisionOp.cs (.../EnhancedPrecisionOp.cs) (revision 8f6ae890fed8e8eae3a32f9c0498a10f82e0ddf9)
+++ src/Common/NetTopologySuite/Precision/EnhancedPrecisionOp.cs (.../EnhancedPrecisionOp.cs) (revision 5fc71a385897af92ccb092f2f969b5709afab85a)
@@ -12,7 +12,7 @@
///
/// Only static methods!
///
- private EnhancedPrecisionOp() { }
+ private EnhancedPrecisionOp() {}
///
/// Computes the set-theoretic intersection of two Geometrys, using enhanced precision.
@@ -43,7 +43,9 @@
IGeometry resultEP = cbo.Intersection(geom0, geom1);
// check that result is a valid point after the reshift to orginal precision
if (!resultEP.IsValid)
+ {
throw originalEx;
+ }
return resultEP;
}
catch (ApplicationException)
@@ -81,7 +83,9 @@
IGeometry resultEP = cbo.Union(geom0, geom1);
// check that result is a valid point after the reshift to orginal precision
if (!resultEP.IsValid)
+ {
throw originalEx;
+ }
return resultEP;
}
catch (ApplicationException)
@@ -119,7 +123,9 @@
IGeometry resultEP = cbo.Difference(geom0, geom1);
// check that result is a valid point after the reshift to orginal precision
if (!resultEP.IsValid)
+ {
throw originalEx;
+ }
return resultEP;
}
catch (ApplicationException)
@@ -157,7 +163,9 @@
IGeometry resultEP = cbo.SymDifference(geom0, geom1);
// check that result is a valid point after the reshift to orginal precision
if (!resultEP.IsValid)
+ {
throw originalEx;
+ }
return resultEP;
}
catch (ApplicationException)
@@ -198,7 +206,9 @@
IGeometry resultEP = cbo.Buffer(geom, distance);
// check that result is a valid point after the reshift to orginal precision
if (!resultEP.IsValid)
+ {
throw originalEx;
+ }
return resultEP;
}
catch (ApplicationException)
@@ -207,4 +217,4 @@
}
}
}
-}
+}
\ No newline at end of file