Author: Carlos Lopez <genet...@gmail.com>
Date:   Thu Jul 12 19:23:05 2012 +0200

Apply patch ID 3543027: Crash when loading 54-morevna.sif. Fixes bug that 
happens when BLine passed is empty.

---

 .../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 e836c2a..e4f0fba 100644
--- a/synfig-core/src/modules/mod_geometry/advanced_outline.cpp
+++ b/synfig-core/src/modules/mod_geometry/advanced_outline.cpp
@@ -1244,6 +1244,8 @@ 
Advanced_Outline::connect_bline_to_wplist(etl::loose_handle<ValueNode> x)
 {
        if(x->get_type() != ValueBase::TYPE_LIST)
                return false;
+       if((*x)(Time(0)).empty())
+               return false;
        if((*x)(Time(0)).get_list().front().get_type() != 
ValueBase::TYPE_BLINEPOINT)
                return false;
        ValueNode::LooseHandle vnode;
@@ -1262,6 +1264,8 @@ 
Advanced_Outline::connect_bline_to_dilist(etl::loose_handle<ValueNode> x)
 {
        if(x->get_type() != ValueBase::TYPE_LIST)
                return false;
+       if((*x)(Time(0)).empty())
+               return false;
        if((*x)(Time(0)).get_list().front().get_type() != 
ValueBase::TYPE_BLINEPOINT)
                return false;
        ValueNode::LooseHandle vnode;


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Synfig-devl mailing list
Synfig-devl@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synfig-devl

Reply via email to