Skip to content

Commit

Permalink
Fix label of angular dimensions
Browse files Browse the repository at this point in the history
According to ISO 129-1 labels of angular dimensions may never be upside
down (that is also true for other labels but not relevant for this
commit).
  • Loading branch information
houz authored and WandererFan committed Mar 13, 2020
1 parent 5c42639 commit 85c9376
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Mod/TechDraw/Gui/QGIViewDimension.cpp
Expand Up @@ -807,8 +807,8 @@ int QGIViewDimension::compareAngleStraightness(double straightAngle, double left

double QGIViewDimension::getIsoStandardLinePlacement(double labelAngle)
{
// According to ISO 129-1 Standard Figure 23, the bordering angle is 2/3 PI, resp. -1/3 PI
return labelAngle < -M_PI/3.0 || labelAngle > +2.0*M_PI/3.0
// According to ISO 129-1 Standard Figure 23, the bordering angle is 1/2 PI, resp. -1/2 PI
return labelAngle < -M_PI/2.0 || labelAngle > +M_PI/2.0
? +1.0 : -1.0;
}

Expand Down

0 comments on commit 85c9376

Please sign in to comment.