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() );