From: dooglus Date: Sat, 31 Mar 2007 08:02:08 +0000 (+0000) Subject: subptr() should subtract from the pointer, not add to it. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=db0d2eebb169e4dbe0a66e507c16b666b1d5dccf;p=synfig.git subptr() should subtract from the pointer, not add to it. git-svn-id: http://svn.voria.com/code@397 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/ETL/trunk/ETL/_pen.h b/ETL/trunk/ETL/_pen.h index 110cb6a..aa6bfab 100644 --- a/ETL/trunk/ETL/_pen.h +++ b/ETL/trunk/ETL/_pen.h @@ -154,7 +154,7 @@ private: void subptr(int nbytes) { - data_ = (pointer)((char*)data_ + nbytes); + data_ = (pointer)((char*)data_ - nbytes); } public: