summaryrefslogtreecommitdiff
path: root/soldep/source/connctr.cxx
diff options
context:
space:
mode:
authorIvo Hinkelmann <ihi@openoffice.org>2006-12-21 11:22:21 +0000
committerIvo Hinkelmann <ihi@openoffice.org>2006-12-21 11:22:21 +0000
commit0c3bfe32252c1ad4ca424b80fbe3b4ca03e8eebe (patch)
tree574bd9ca8c4ac8a73be3dbcdf116d4b52c5fa159 /soldep/source/connctr.cxx
parenta70311b5f1e53614063d353c2aaa57c1a311bf34 (diff)
INTEGRATION: CWS soldep2 (1.2.2); FILE MERGED
2006/11/21 16:27:53 obo 1.2.2.1: #143484# dialog for workspace has to support minors
Diffstat (limited to 'soldep/source/connctr.cxx')
-rw-r--r--soldep/source/connctr.cxx13
1 files changed, 7 insertions, 6 deletions
diff --git a/soldep/source/connctr.cxx b/soldep/source/connctr.cxx
index c37d87ba272c..8201973caa63 100644
--- a/soldep/source/connctr.cxx
+++ b/soldep/source/connctr.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: connctr.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: obo $ $Date: 2006-04-20 15:15:01 $
+ * last change: $Author: ihi $ $Date: 2006-12-21 12:22:21 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -32,11 +32,12 @@
* MA 02111-1307 USA
*
************************************************************************/
-
+#ifdef _MSC_VER
+#pragma warning(disable:4100)
+#endif
#include "connctr.hxx"
#include "objwin.hxx"
#include "depwin.hxx"
-//#include "depapp.hxx"
#include "math.h"
BOOL Connector::msbHideMode = FALSE;
@@ -274,10 +275,10 @@ ULONG Connector::GetLen()
dx = mStart.X() - mEnd.X();
dy = mStart.Y() - mEnd.Y();
- return sqrt( dx * dx + dy * dy );
+ return (ULONG) sqrt( dx * dx + dy * dy );
}
BOOL Connector::IsStart( ObjectWin* pWin )
{
return pWin == mpStartWin;
-}
+} \ No newline at end of file