# HG changeset patch # User Santeri Piippo # Date 1382134557 -10800 # Node ID 63135a8abd414c59f6a5a27326a1a468f7990d25 # Parent 623c01862eb874c7cf6fa44e2115cc659d2086d0 cosmetic fixes diff -r 623c01862eb8 -r 63135a8abd41 src/file.cpp --- a/src/file.cpp Sat Oct 19 01:11:26 2013 +0300 +++ b/src/file.cpp Sat Oct 19 01:15:57 2013 +0300 @@ -308,7 +308,7 @@ { log ("Couldn't parse line #%1: %2", m_progress + 1, static_cast (obj)->reason); if (m_warningsPointer) - (*m_warningsPointer) ++; + (*m_warningsPointer)++; } m_objs << obj; @@ -320,7 +320,7 @@ } // If we're done now, tell the environment we're done and stop. - if (i >= ( (int) lines().size()) - 1) + if (i >= ((int) lines().size()) - 1) { emit workDone(); setDone (true); return; diff -r 623c01862eb8 -r 63135a8abd41 src/gldraw.cpp --- a/src/gldraw.cpp Sat Oct 19 01:11:26 2013 +0300 +++ b/src/gldraw.cpp Sat Oct 19 01:15:57 2013 +0300 @@ -498,8 +498,8 @@ transformed[Y] = (m[4] * x) + (m[5] * y) + (m[6] * z) + m[7]; transformed[Z] = (m[8] * x) + (m[9] * y) + (m[10] * z) + m[11]; - double rx = ( ( (transformed[axisX] * negXFac) + m_virtWidth + m_panX) * m_width) / (2 * m_virtWidth); - double ry = ( ( (transformed[axisY] * negYFac) - m_virtHeight + m_panY) * m_height) / (2 * m_virtHeight); + double rx = (((transformed[axisX] * negXFac) + m_virtWidth + m_panX) * m_width) / (2 * m_virtWidth); + double ry = (((transformed[axisY] * negYFac) - m_virtHeight + m_panY) * m_height) / (2 * m_virtHeight); return QPoint (rx, -ry); }