Tag: cws_src680_kabrefine
User: fs      
Date: 06/01/06 05:40:11

Modified:
 /dba/connectivity/source/drivers/kab/
  KDEInit.cxx

Log:
 better version check

File Changes:

Directory: /dba/connectivity/source/drivers/kab/
================================================

File [changed]: KDEInit.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/connectivity/source/drivers/kab/KDEInit.cxx?r1=1.1.2.4&r2=1.1.2.5
Delta lines:  +10 -4
--------------------
--- KDEInit.cxx 6 Jan 2006 08:56:17 -0000       1.1.2.4
+++ KDEInit.cxx 6 Jan 2006 13:40:09 -0000       1.1.2.5
@@ -4,9 +4,9 @@
  *
  *  $RCSfile: KDEInit.cxx,v $
  *
- *  $Revision: 1.1.2.4 $
+ *  $Revision: 1.1.2.5 $
  *
- *  last change: $Author: fs $ $Date: 2006/01/06 08:56:17 $
+ *  last change: $Author: fs $ $Date: 2006/01/06 13:40:09 $
  *
  *  The Contents of this file are made available subject to
  *  the terms of GNU Lesser General Public License Version 2.1.
@@ -146,9 +146,15 @@
 {
     if ( ::KDE::versionMajor() < MIN_KDE_VERSION_MAJOR )
         return 0;
-    if ( ( ::KDE::versionMajor() == MIN_KDE_VERSION_MAJOR ) && ( 
::KDE::versionMinor() < MIN_KDE_VERSION_MINOR ) )
+    if ( ::KDE::versionMajor() > MIN_KDE_VERSION_MAJOR )
+        return 1;
+
+    if ( ::KDE::versionMinor() < MIN_KDE_VERSION_MINOR )
         return 0;
-    if ( ( ::KDE::versionMinor() == MIN_KDE_VERSION_MINOR ) && ( 
::KDE::versionRelease() < MIN_KDE_VERSION_RELEASE ) )
+    if ( ::KDE::versionMinor() > MIN_KDE_VERSION_MINOR )
+        return 1;
+
+    if ( ::KDE::versionRelease() < MIN_KDE_VERSION_RELEASE )
         return 0;
     return 1;
 




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to