diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-10-07 17:33:10 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-10-07 17:51:38 +0200 |
commit | 8737001fe8230ad301a716ec1f61b61ccd265422 (patch) | |
tree | 1a05e93264cf440add9f65656ecd2b32ecaf5b1e /svx | |
parent | 9c8601416ce87ed2fdebbf3eb8059deb0c9a9f18 (diff) |
clang-analyzer-deadcode.DeadStores
Change-Id: I6ddee7ee5f54388dae6f001d9fb9fbdb4012e11d
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/svdraw/svdopath.cxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/svx/source/svdraw/svdopath.cxx b/svx/source/svdraw/svdopath.cxx index 10a8aeaf089c..95e6ce86d9dd 100644 --- a/svx/source/svdraw/svdopath.cxx +++ b/svx/source/svdraw/svdopath.cxx @@ -389,15 +389,17 @@ XPolygon ImpPathCreateUser::GetCirclePoly() const Point ImpPathCreateUser::CalcLine(const Point& aCsr, long nDirX, long nDirY, SdrView* pView) { - long x=aCsr.X(),x1=x,x2=x; - long y=aCsr.Y(),y1=y,y2=y; + long x=aCsr.X(); + long y=aCsr.Y(); bool bHLin=nDirY==0; bool bVLin=nDirX==0; if (bHLin) y=0; else if (bVLin) x=0; else { - x1=BigMulDiv(y,nDirX,nDirY); - y2=BigMulDiv(x,nDirY,nDirX); + long x1=BigMulDiv(y,nDirX,nDirY); + long y1=y; + long x2=x; + long y2=BigMulDiv(x,nDirY,nDirX); long l1=std::abs(x1)+std::abs(y1); long l2=std::abs(x2)+std::abs(y2); if ((l1<=l2) != (pView!=NULL && pView->IsBigOrtho())) { |