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

List:       kde-commits
Subject:    KDE/kdelibs/kdeui/plotting
From:       Christoph Feck <christoph () maxiom ! de>
Date:       2009-12-08 22:36:54
Message-ID: 1260311814.630828.27548.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1060441 by cfeck:

Align grid to major ticks

BUG: 211386


 M  +1 -1      kplotwidget.cpp  


--- trunk/KDE/kdelibs/kdeui/plotting/kplotwidget.cpp #1060440:1060441
@@ -704,7 +704,7 @@
         }
         //horizontal grid lines
         foreach( double yy, axis(LeftAxis)->majorTickMarks() ) {
-            double py = d->pixRect.height() * (yy - d->dataRect.y()) / d->dataRect.height();
+            double py = d->pixRect.height() * ( 1.0 - (yy - d->dataRect.y()) / d->dataRect.height() );
             p->drawLine( QPointF( 0.0, py ), QPointF( double(d->pixRect.width()), py ) );
         }
     }
[prev in list] [next in list] [prev in thread] [next in thread] 

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