Skip to content

Commit

Permalink
Vertical Diameter legible from right per stds
Browse files Browse the repository at this point in the history
  • Loading branch information
WandererFan authored and wwmayer committed Aug 12, 2016
1 parent d8ccf14 commit cb05040
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Mod/TechDraw/Gui/QGIViewDimension.cpp
Expand Up @@ -598,11 +598,11 @@ void QGIViewDimension::draw()
double tolerance = 15.0; //deg

tolerance *= M_PI / 180;
if( (angle > -tolerance && angle < tolerance) || //angle = 0 or 180 (+/- 15)
(angle > (M_PI - tolerance) || angle < (-M_PI + tolerance)) ) {
if( (angle > -tolerance && angle < tolerance) || //angle = 0 or 180 (+/- 15)
(angle > (M_PI - tolerance) || angle < (-M_PI + tolerance)) ) { //dim line is Horizontal
posMode = HorizontalSnap;
} else if( (angle < ( M_PI / 2. + tolerance) && angle > ( M_PI / 2. - tolerance)) || //angle = 90 or 270 (+/- 15)
(angle < (-M_PI / 2. + tolerance) && angle > (-M_PI / 2. - tolerance)) ) {
(angle < (-M_PI / 2. + tolerance) && angle > (-M_PI / 2. - tolerance)) ) { //dim line is Vertical
posMode = VerticalSnap;
}

Expand Down Expand Up @@ -672,7 +672,7 @@ void QGIViewDimension::draw()
path.moveTo(dLine2Tail.x, dLine2Tail.y);
path.lineTo(arrow2Tip.x, arrow2Tip.y);

datumLabel->setRotation(90.);
datumLabel->setRotation(-90.);

} else { //outer placement, NoSnap
float tip = (margin + w / 2); // spacer + 0.5*lblText.width() tip is actually tail?
Expand Down

0 comments on commit cb05040

Please sign in to comment.