paragui-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[paragui-cvs] CVS: paragui/src/core pgnavigator.cpp,1.1,1.2


From: Alexander Pipelka <address@hidden>
Subject: [paragui-cvs] CVS: paragui/src/core pgnavigator.cpp,1.1,1.2
Date: Tue, 16 Apr 2002 03:43:32 -0400

Update of /cvsroot/paragui/paragui/src/core
In directory subversions:/tmp/cvs-serv20182/src/core

Modified Files:
        pgnavigator.cpp 
Log Message:
fixed non-conforming usage of sqrt()

Submitted by: Ian McCulloch <address@hidden>


Index: pgnavigator.cpp
===================================================================
RCS file: /cvsroot/paragui/paragui/src/core/pgnavigator.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** pgnavigator.cpp     15 Apr 2002 14:53:56 -0000      1.1
--- pgnavigator.cpp     16 Apr 2002 07:43:30 -0000      1.2
***************
*** 165,169 ****
                }
  
!               double l = sqrt(dx*dx + dy*dy);
                if( ((xmode != 0) && (dx != 0)) || ((ymode != 0) && (dy != 0)) 
) {
                        if(l < min_l) {
--- 165,169 ----
                }
  
!               double l = sqrt((double)(dx*dx + dy*dy));
                if( ((xmode != 0) && (dx != 0)) || ((ymode != 0) && (dy != 0)) 
) {
                        if(l < min_l) {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]