]> Git trees. - libqmvoc.git/commitdiff
Fix grid painting v3.5.1
authorPino Toscano <pino@kde.org>
Mon, 2 Jan 2006 20:25:47 +0000 (20:25 +0000)
committerPino Toscano <pino@kde.org>
Mon, 2 Jan 2006 20:25:47 +0000 (20:25 +0000)
svn path=/branches/KDE/3.5/kdeedu/libkdeedu/; revision=493649

kdeeduplot/kplotwidget.cpp

index 7d139bbe4e7703207964159ec2c3e64b0d80f0d6..e2103509d8f726d56f7b16aea8558cae50576f08 100644 (file)
@@ -253,7 +253,7 @@ void KPlotWidget::drawBox( QPainter *p ) {
                //horizontal grid lines
                double y0 = y() - dmod( y(), dYtick ); //zeropoint; y(i) is this plus i*mX
                for ( int iy = 0; iy <= nmajY+1; iy++ ) {
-                       int py = int( PixRect.height() * ( (y0 + iy*dYtick - y())/dataHeight() ) );
+                       int py = PixRect.height() - int( PixRect.height() * ( (y0 + iy*dYtick - y())/dataHeight() ) );
                        p->drawLine( 0, py, PixRect.width(), py );
                }
        }