Index: gm/downsamplebitmap.cpp |
diff --git a/gm/downsamplebitmap.cpp b/gm/downsamplebitmap.cpp |
index a59e5b85dfb294345ebc1e5680f6a18eebd32e92..e34effa07fb3d16cd1cef9b0006ab400cf0ec302 100644 |
--- a/gm/downsamplebitmap.cpp |
+++ b/gm/downsamplebitmap.cpp |
@@ -75,7 +75,7 @@ protected: |
curWidth = (int) (fBM.width() * curScale + 2); |
curX += curWidth; |
curScale *= 0.75f; |
- } while (curX < 4*fBM.width()); |
+ } while (curWidth >= 2 && curX < 4*fBM.width()); |
} |
private: |