[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/karbon/plugins/tools/CalligraphyTool
From: Jan Hambrecht <jaham () gmx ! net>
Date: 2008-11-04 20:19:43
Message-ID: 1225829983.105212.12216.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 880127 by jaham:
fix crash which happens when trying to simplify callipgraphy path with too few points
M +4 -0 KarbonCalligraphicShape.cpp
--- trunk/koffice/karbon/plugins/tools/CalligraphyTool/KarbonCalligraphicShape.cpp #880126:880127
@@ -374,6 +374,10 @@
void KarbonCalligraphicShape::simplifyGuidePath()
{
+ // do not attempt to simplify if there are too few points
+ if( m_points.count() < 3 )
+ return;
+
QList<QPointF> points;
foreach( KarbonCalligraphicPoint *p, m_points )
points.append( p->point() );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic