Author: Carlos Lopez <[email protected]>
Date: Fri Oct 7 11:29:58 2011 +0200
Find the new k1 and k2 indexes after calculate kem
---
synfig-studio/src/synfigapp/wplistconverter.cpp | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/synfig-studio/src/synfigapp/wplistconverter.cpp
b/synfig-studio/src/synfigapp/wplistconverter.cpp
index 77d57e5..43b963d 100644
--- a/synfig-studio/src/synfigapp/wplistconverter.cpp
+++ b/synfig-studio/src/synfigapp/wplistconverter.cpp
@@ -139,9 +139,6 @@ WPListConverter::operator()(std::list<synfig::WidthPoint>
&wp_out, const std::li
synfig::info("kem %d", kem);
while(se>err2max)
{
- k1=find_prev(kem);
- k2=find_next(kem);
- synfig::info("new k1 %d, k2 %d", k1, k2);
if(k1==k2 || k1+1==k2)
break;
// Insert a width point at kem
@@ -149,6 +146,9 @@ WPListConverter::operator()(std::list<synfig::WidthPoint>
&wp_out, const std::li
// Calculate the errors again
kem=calculate_ek2(k1, k2);
synfig::info("new kem %d", kem);
+ k1=find_prev(kem);
+ k2=find_next(kem);
+ synfig::info("new k1 %d, k2 %d", k1, k2);
}
wp_out.assign(work_out.begin(), work_out.end());
}
------------------------------------------------------------------------------
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