Kaydet (Commit) 8737001f authored tarafından Stephan Bergmann's avatar Stephan Bergmann

clang-analyzer-deadcode.DeadStores

Change-Id: I6ddee7ee5f54388dae6f001d9fb9fbdb4012e11d
üst 9c860141
...@@ -389,15 +389,17 @@ XPolygon ImpPathCreateUser::GetCirclePoly() const ...@@ -389,15 +389,17 @@ XPolygon ImpPathCreateUser::GetCirclePoly() const
Point ImpPathCreateUser::CalcLine(const Point& aCsr, long nDirX, long nDirY, SdrView* pView) Point ImpPathCreateUser::CalcLine(const Point& aCsr, long nDirX, long nDirY, SdrView* pView)
{ {
long x=aCsr.X(),x1=x,x2=x; long x=aCsr.X();
long y=aCsr.Y(),y1=y,y2=y; long y=aCsr.Y();
bool bHLin=nDirY==0; bool bHLin=nDirY==0;
bool bVLin=nDirX==0; bool bVLin=nDirX==0;
if (bHLin) y=0; if (bHLin) y=0;
else if (bVLin) x=0; else if (bVLin) x=0;
else { else {
x1=BigMulDiv(y,nDirX,nDirY); long x1=BigMulDiv(y,nDirX,nDirY);
y2=BigMulDiv(x,nDirY,nDirX); long y1=y;
long x2=x;
long y2=BigMulDiv(x,nDirY,nDirX);
long l1=std::abs(x1)+std::abs(y1); long l1=std::abs(x1)+std::abs(y1);
long l2=std::abs(x2)+std::abs(y2); long l2=std::abs(x2)+std::abs(y2);
if ((l1<=l2) != (pView!=NULL && pView->IsBigOrtho())) { if ((l1<=l2) != (pView!=NULL && pView->IsBigOrtho())) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment