[Libreoffice-commits] core.git: chart2/source
Norbert Thiebaud
nthiebaud at gmail.com
Fri Jul 4 12:22:16 PDT 2014
chart2/source/controller/main/DragMethod_RotateDiagram.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 22906fd3470ae33b7fcb4c74095d663789c6178d
Author: Norbert Thiebaud <nthiebaud at gmail.com>
Date: Fri Jul 4 21:21:34 2014 +0200
add parenthese to fix precedence issue
Change-Id: Ifb4c750f4ddedd27593acde4e93331e74e9d37c4
diff --git a/chart2/source/controller/main/DragMethod_RotateDiagram.cxx b/chart2/source/controller/main/DragMethod_RotateDiagram.cxx
index fc2d9d7..d98bc32 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;
More information about the Libreoffice-commits
mailing list