diff --git a/include/core/SkReadBuffer.h b/include/core/SkReadBuffer.h index 3befb42512..3cb31a0e80 100644 --- a/include/core/SkReadBuffer.h +++ b/include/core/SkReadBuffer.h @@ -46,7 +46,7 @@ public: /** This may be called at most once; most clients of SkReadBuffer should not mess with it. */ void setPictureVersion(int version) { - SkASSERT(0 == fPictureVersion); + SkASSERT(0 == fPictureVersion || version == fPictureVersion); fPictureVersion = version; }