[Date Prev][Date Next][Thread Prev][Thread Next][Thread Index]
[XaraXtreme-dev] TextOps Re: [XaraXtreme-commits] Commit Complete
- From: Alex Bligh <alex@xxxxxxxxxxx>
- Date: Wed, 05 Jul 2006 14:58:05 +0100
- Subject: [XaraXtreme-dev] TextOps Re: [XaraXtreme-commits] Commit Complete
Gerry,
They were no doubt commented out because SqrDist is unused and this
thus gave an unused variable warning. Perhaps you could just call the
function without assigning the result to a variable.
Alex
subversion@xxxxxxxxxxxxxx wrote:
Commit by : gerry
Repository : xara
Revision : 1406
Date : Wed Jul 5 14:42:30 BST 2006
Changed paths:
M /Trunk/XaraLX/tools/textops.cpp
Put back two rather important lines that were commented out at some point
Diff:
Index: Trunk/XaraLX/tools/textops.cpp
===================================================================
--- Trunk/XaraLX/tools/textops.cpp (revision 1405)
+++ Trunk/XaraLX/tools/textops.cpp (revision 1406)
@@ -5641,7 +5641,7 @@
INT32 NearEl=0;
double mu=0.0;
-// double SqrDist = mpStoryPath->InkPath.SqrDistanceToPoint(Current, &NearEl, &mu);
+ double SqrDist = mpStoryPath->InkPath.SqrDistanceToPoint(Current, &NearEl, &mu);
DocCoord LinePoint = mpStoryPath->InkPath.ClosestPointTo(mu, NearEl);
// We need to stop the left hand blob going past the right hand one.
@@ -5676,7 +5676,7 @@
INT32 NearEl=0;
double mu=0.0;
-// double SqrDist = mpStoryPath->InkPath.SqrDistanceToPoint(Current, &NearEl, &mu);
+ double SqrDist = mpStoryPath->InkPath.SqrDistanceToPoint(Current, &NearEl, &mu);
DocCoord LinePoint = mpStoryPath->InkPath.ClosestPointTo(mu, NearEl);
// We need to stop the right hand blob going past the left hand one.
Xara