From kde-commits Tue Nov 04 20:19:43 2008 From: Jan Hambrecht Date: Tue, 04 Nov 2008 20:19:43 +0000 To: kde-commits Subject: koffice/karbon/plugins/tools/CalligraphyTool Message-Id: <1225829983.105212.12216.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=122582999221809 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 points; foreach( KarbonCalligraphicPoint *p, m_points ) points.append( p->point() );