package lasi
tags 370112 + patch
thanks

Hi,

It seems that this bug comes from a change in libfreetype6-dev.
Here is a patch to fix this bug.

-- 
Florent
--- lasi-1.0.5/src/drawGlyph.cpp.old	2006-06-03 16:50:43.000000000 +0200
+++ lasi-1.0.5/src/drawGlyph.cpp	2006-06-03 16:41:19.000000000 +0200
@@ -81,7 +81,7 @@
   return 0;
 }
 
-static int moveTo(FT_Vector* pftVec, void* data) {
+static int moveTo(const FT_Vector* pftVec, void* data) {
   StateOfDrawGlyph* const state = reinterpret_cast<StateOfDrawGlyph* const>(data);
   state->os() << (state->isNewPath() ? "newpath" : "closepath") << endl;
   state->setNewPathFalse();
@@ -89,19 +89,19 @@
   return 0;
 }
 
-static int lineTo(FT_Vector* pftVec, void* data) {
+static int lineTo(const FT_Vector* pftVec, void* data) {
   xTo(pftVec, data, "lineto");
   return 0;
 }
 
-static int cubicTo(FT_Vector* ctrlPt1, FT_Vector* ctrlPt2, FT_Vector* pEndPt, void* data) {
+static int cubicTo(const FT_Vector* ctrlPt1, const FT_Vector* ctrlPt2, const FT_Vector* pEndPt, void* data) {
   StateOfDrawGlyph* const state = reinterpret_cast<StateOfDrawGlyph* const>(data);
   state->os() << *ctrlPt1 << " " << *ctrlPt2 << " " << *pEndPt << " curveto" << endl;
   state->setStartPt(*pEndPt);
   return 0;
 }
 
-static int conicTo(FT_Vector* pCtrlPt, FT_Vector* pEndPt, void* data) {
+static int conicTo(const FT_Vector* pCtrlPt, const FT_Vector* pEndPt, void* data) {
   StateOfDrawGlyph* const state = reinterpret_cast<StateOfDrawGlyph* const>(data);
   FT_Vector ctrlPt1 = (state->startPt() + 2 * *pCtrlPt) / 3;
   FT_Vector ctrlPt2 = (*pEndPt + 2 * *pCtrlPt) / 3;

Attachment: pgpMTcOzjsqrV.pgp
Description: PGP signature

Reply via email to