Author: Carlos Lopez <genet...@gmail.com> Date: Sun Nov 13 19:23:23 2011 +0100
Avoid crash when there is only one blinepoint and the bline is not looped. --- .../src/modules/mod_geometry/advanced_outline.cpp | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/synfig-core/src/modules/mod_geometry/advanced_outline.cpp b/synfig-core/src/modules/mod_geometry/advanced_outline.cpp index d3f4c73..f72e834 100644 --- a/synfig-core/src/modules/mod_geometry/advanced_outline.cpp +++ b/synfig-core/src/modules/mod_geometry/advanced_outline.cpp @@ -192,6 +192,10 @@ Advanced_Outline::sync() // For one single blinepoint, bezier size is always 1.0 Real bezier_size = 1.0/(blineloop?bline_size:(bline_size==1?1.0:(bline_size-1))); const vector<BLinePoint>::const_iterator bend(bline.end()); + // If we have only one blinepoint and it the bline is not looped + // then there is nothing to render + if(!blineloop && bline_size==1) + return; // Fill the list of positions of the blinepoints // bindex is used to calculate the position // of the bilinepoint on the bline properly ------------------------------------------------------------------------------ RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 _______________________________________________ Synfig-devl mailing list Synfig-devl@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synfig-devl