diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-07-04 21:21:34 +0200 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-07-04 21:21:34 +0200 |
commit | 22906fd3470ae33b7fcb4c74095d663789c6178d (patch) | |
tree | 302008784f728d01a7a5cd93ca129213967de694 /chart2 | |
parent | 4aa157e1259f925f4572331a1f9a95f5234a319e (diff) |
add parenthese to fix precedence issue
Change-Id: Ifb4c750f4ddedd27593acde4e93331e74e9d37c4
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/controller/main/DragMethod_RotateDiagram.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chart2/source/controller/main/DragMethod_RotateDiagram.cxx b/chart2/source/controller/main/DragMethod_RotateDiagram.cxx index fc2d9d771cf0..d98bc321088c 100644 --- a/chart2/source/controller/main/DragMethod_RotateDiagram.cxx +++ b/chart2/source/controller/main/DragMethod_RotateDiagram.cxx @@ -115,9 +115,9 @@ void DragMethod_RotateDiagram::MoveSdrDrag(const Point& rPnt) //calculate new angle double fX = F_PI / 2.0 * (double)(rPnt.Y() - m_aStartPos.Y()) - / m_aReferenceRect.GetHeight() > 0 ? (double)m_aReferenceRect.GetHeight() : 1.0; + / (m_aReferenceRect.GetHeight() > 0 ? (double)m_aReferenceRect.GetHeight() : 1.0); double fY = F_PI * (double)(rPnt.X() - m_aStartPos.X()) - / m_aReferenceRect.GetWidth() > 0 ? (double)m_aReferenceRect.GetWidth() : 1.0; + / (m_aReferenceRect.GetWidth() > 0 ? (double)m_aReferenceRect.GetWidth() : 1.0); if( m_eRotationDirection != ROTATIONDIRECTION_Y ) m_fAdditionalYAngleRad = fY; |