diff --git a/splash/Splash.cc b/splash/Splash.cc
index 34bea6a..81bae82 100644
--- a/splash/Splash.cc
+++ b/splash/Splash.cc
@@ -2439,6 +2439,16 @@ SplashError Splash::fillWithPattern(SplashPath *path, GBool eo,
     scanner->getBBox(&xMinI, &yMinI, &xMaxI, &yMaxI);
   }
 
+  if (eo && (yMinI == yMaxI || xMinI == xMaxI)) {
+    SplashCoord mx, my, delta;
+    transform(state->matrix, 0, 0, &mx, &my);
+    transform(state->matrix, state->lineWidth, 0, &delta, &my);
+    if (delta - mx < 1 && thinLineMode != splashThinLineDefault) {
+      opClipRes = splashClipAllOutside;
+      return splashOk;
+    }
+  }
+
   // check clipping
   if ((clipRes = state->clip->testRect(xMinI, yMinI, xMaxI, yMaxI))
       != splashClipAllOutside) {