[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 129061] Axis displays no numbers or tick marks
From:       Andrew Walker <arwalker () sumusltd ! com>
Date:       2006-06-12 18:08:13
Message-ID: 20060612180813.32367.qmail () ktown ! kde ! org
[Download RAW message or body]

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
         
http://bugs.kde.org/show_bug.cgi?id=129061         
arwalker sumusltd com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From arwalker sumusltd com  2006-06-12 20:08 -------
SVN commit 550775 by arwalker:

BUG:129061 Prevent axes zooming out beyond sensible range

 M  +7 -4      kst2dplot.cpp  


--- trunk/extragear/graphics/kst/src/libkstapp/kst2dplot.cpp #550774:550775
 @ -701,9 +701,8  @
 
 
 bool Kst2DPlot::checkLRange(double &min_in, double &max_in, bool bIsLog, double logBase) {
-  double diff  = fabs(1000.0 * min_in) * DBL_EPSILON;
   bool rc = true;
-
+  
   if (bIsLog) {
     if (isnan(pow(logBase, min_in)) || isnan(pow(logBase, max_in)) ||
         isinf(pow(logBase, min_in)) || isinf(pow(logBase, max_in))) {
 @ -714,8 +713,12  @
     rc = false;
   }
 
-  if (rc && max_in <= min_in + diff) {
-    max_in = min_in + diff;
+  if (rc) {
+    double diff = fabs(1000.0 * min_in) * DBL_EPSILON;
+
+    if (max_in <= min_in + diff) {
+      max_in = min_in + diff;
+    }
   }
 
   return rc;
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic