|
From: <mbe...@us...> - 2010-07-09 11:20:51
|
Revision: 831
http://scstudio.svn.sourceforge.net/scstudio/?rev=831&view=rev
Author: mbezdeka
Date: 2010-07-09 11:20:45 +0000 (Fri, 09 Jul 2010)
Log Message:
-----------
Message snapping:
- forgotten debug info erased
Modified Paths:
--------------
trunk/src/view/visio/addon/messageSnapping.cpp
trunk/src/view/visio/addon/scstudio.vcproj
Modified: trunk/src/view/visio/addon/messageSnapping.cpp
===================================================================
--- trunk/src/view/visio/addon/messageSnapping.cpp 2010-07-09 11:02:10 UTC (rev 830)
+++ trunk/src/view/visio/addon/messageSnapping.cpp 2010-07-09 11:20:45 UTC (rev 831)
@@ -64,7 +64,6 @@
std::pair<Visio::IVShapePtr, Visio::IVShapePtr> CMessageSnapping::getClosestInstancePair(Visio::IVShapePtr msgShape,
const std::vector<Visio::IVShapePtr>& instances)
{
- //FIX ME: sometimes doesn't find the closest instances
double msgPinX = CShapeUtils::GetShapeCellProperty(msgShape, "PinX", "mm");
Visio::IVShapePtr leftClosestInstance = NULL;
@@ -78,7 +77,6 @@
{
instPinX = CShapeUtils::GetShapeCellProperty((*it),"PinX","mm");
distance = msgPinX - instPinX;
- (*it)->Text = stringize() << distance << " - ID: " << (*it)->ID;
if(distance < 0)
{
if(!rightClosestInstance || distance > rightClosestInstanceDist) //NOTE: Distance must be bigger, becaouse numbers are negative
Modified: trunk/src/view/visio/addon/scstudio.vcproj
===================================================================
--- trunk/src/view/visio/addon/scstudio.vcproj 2010-07-09 11:02:10 UTC (rev 830)
+++ trunk/src/view/visio/addon/scstudio.vcproj 2010-07-09 11:20:45 UTC (rev 831)
@@ -364,6 +364,10 @@
>
</File>
<File
+ RelativePath=".\messageSnapping.h"
+ >
+ </File>
+ <File
RelativePath=".\numberingGlobalDlg.cpp"
>
</File>
@@ -526,10 +530,6 @@
>
</File>
</Filter>
- <File
- RelativePath=".\messageSnapping.h"
- >
- </File>
</Files>
<Globals>
<Global
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|