subptr() should subtract from the pointer, not add to it.
[synfig.git] / ETL / trunk / ETL / _pen.h
index 110cb6a..aa6bfab 100644 (file)
@@ -154,7 +154,7 @@ private:
 
        void subptr(int nbytes)
        {
-               data_ = (pointer)((char*)data_ + nbytes);
+               data_ = (pointer)((char*)data_ - nbytes);
        }
 
 public: