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

List:       kde-commits
Subject:    [analitza] analitzaplot: Fix minor bug in method to draw polar angles
From:       Percy_Camilo_Triveño_Aucahuasi <percy.camilo.ta () gmail ! com>
Date:       2014-01-08 8:09:40
Message-ID: E1W0oCq-0008Dx-Fb () scm ! kde ! org
[Download RAW message or body]

Git commit 10548e2cbf93dfeebc9a65a7c8ce454c81847faa by Percy Camilo Triveño Aucahuasi.
Committed on 08/01/2014 at 08:09.
Pushed by aucahuasi into branch 'master'.

Fix minor bug in method to draw polar angles

M  +2    -1    analitzaplot/plotter2d.cpp

http://commits.kde.org/analitza/10548e2cbf93dfeebc9a65a7c8ce454c81847faa

diff --git a/analitzaplot/plotter2d.cpp b/analitzaplot/plotter2d.cpp
index 990b5a6..2209719 100644
--- a/analitzaplot/plotter2d.cpp
+++ b/analitzaplot/plotter2d.cpp
@@ -463,10 +463,11 @@ void Plotter2D::drawPolarTickLabels(QPainter* painter, const Plotter2D::GridInfo
     
     const unsigned int drawoverxaxiscount = turns/2;
     const unsigned int drawnextyaxiscount = turns/4;
+    const unsigned int halfturns = drawoverxaxiscount; // or turns/2;
     
     for (int j = 0; j < turns; ++j, ++k, t += h) // Pi6 then 24 turns
     {
-        const QPair<unsigned int, unsigned int> frac = simplifyFraction(k, 12); // npi/12
+        const QPair<unsigned int, unsigned int> frac = simplifyFraction(k, halfturns);
         
         if (k != 0)
             s = computeAngleLabelByFrac(frac.first, frac.second);
[prev in list] [next in list] [prev in thread] [next in thread] 

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