Author: Carlos Lopez <[email protected]>
Date:   Fri Oct  7 12:23:03 2011 +0200

When a Distance is assigned from a string and system units is empty use the 
previous one. If the system was not set an exception is caught.

---

 synfig-core/src/synfig/distance.cpp |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/synfig-core/src/synfig/distance.cpp 
b/synfig-core/src/synfig/distance.cpp
index efac8e9..81b95f8 100644
--- a/synfig-core/src/synfig/distance.cpp
+++ b/synfig-core/src/synfig/distance.cpp
@@ -101,6 +101,9 @@ Distance::operator=(const synfig::String& str)
 
        if(sys.size())
                system_=ident_system(sys);
+       else
+       // this would throw BadSystem if system_ was not previously provided
+               sys=system_name(system_);
        return *this;
 }
 


------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl

Reply via email to