From 3665324a45f656f5afc2002e26cc53e27fff268d Mon Sep 17 00:00:00 2001 From: cxl Date: Thu, 15 Jan 2009 22:51:52 +0000 Subject: [PATCH] Painter fixes git-svn-id: svn://ultimatepp.org/upp/trunk@753 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/Painter/BufferPainter.cpp | 2 +- uppsrc/Painter/Path.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/uppsrc/Painter/BufferPainter.cpp b/uppsrc/Painter/BufferPainter.cpp index 94a4f7a8d..e842f472c 100644 --- a/uppsrc/Painter/BufferPainter.cpp +++ b/uppsrc/Painter/BufferPainter.cpp @@ -84,7 +84,7 @@ void BufferPainter::CubicOp(double x1, double y1, double x2, double y2, double x void BufferPainter::CubicOp(double x2, double y2, double x, double y, bool rel) { - Pointf c = current + current - qcontrol; + Pointf c = current + current - ccontrol; PathPoint0(c.x, c.y); PathPoint(x2, y2, rel); ccontrol = Pointf(x2, y2); diff --git a/uppsrc/Painter/Path.cpp b/uppsrc/Painter/Path.cpp index b57818063..09a13f899 100644 --- a/uppsrc/Painter/Path.cpp +++ b/uppsrc/Painter/Path.cpp @@ -6,6 +6,7 @@ Pointf Painter::ReadPoint(CParser& p) { Pointf t; t.x = p.IsDouble() ? p.ReadDouble() : 0; + p.Char(','); t.y = p.IsDouble() ? p.ReadDouble() : 0; return t; }