[Date Prev][Date Next][Thread Prev][Thread Next][Thread Index]
[XaraXtreme-commits] Commit Complete
Commit by : alex
Repository : xara
Revision : 962
Date : Fri May 5 16:22:48 BST 2006
Changed paths:
M /Trunk/XaraLX/Kernel/fitcurve.cpp
M /Trunk/XaraLX/Kernel/rsmooth.cpp
Fixed maths error that caused freehand not to work
Diff:
Index: Trunk/XaraLX/Kernel/fitcurve.cpp
===================================================================
--- Trunk/XaraLX/Kernel/fitcurve.cpp (revision 961)
+++ Trunk/XaraLX/Kernel/fitcurve.cpp (revision 962)
@@ -844,7 +844,7 @@
{
double Distance;
double MaxDist = 0.0;
- double RTotalLength = 1/(Distances[LastPoint] - Distances[FirstPoint]);
+ double RTotalLength = 1.0/(Distances[LastPoint] - Distances[FirstPoint]);
FitPoint Point;
// Start out by putting the split point in the middle of the curve segment
Index: Trunk/XaraLX/Kernel/rsmooth.cpp
===================================================================
--- Trunk/XaraLX/Kernel/rsmooth.cpp (revision 961)
+++ Trunk/XaraLX/Kernel/rsmooth.cpp (revision 962)
@@ -114,6 +114,7 @@
#include "objchge.h"
#include "nodeblnd.h"
#include "nodebldr.h"
+#include "ophist.h"
CC_IMPLEMENT_DYNCREATE( OpRetroSmooth, SelOperation )
@@ -964,8 +965,6 @@
void OpRetroSmooth::DoRetroSmooth(NodePath* pThisNode, Path* pPath, double smoothacc)
{
- PORTNOTETRACE("other","OpRetroSmooth::DoRetroSmooth - do nothing");
-#ifndef EXCLUDE_FROM_XARALX
BOOL ok;
// remember the selection before the operation
if (!DoStartSelOp(FALSE,FALSE))
@@ -1121,7 +1120,6 @@
//pOrigBlend->forOpRetroSmooth = FALSE;
// DoSmoothNodePath(pThisNode,smoothacc),this,ok);
End();
-#endif
}
Xara