Skip to content

Commit

Permalink
QGIViewBalloon.cpp: code simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
donovaly committed Feb 16, 2021
1 parent 1061c0e commit da4f6ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Mod/TechDraw/Gui/QGIViewBalloon.cpp
Expand Up @@ -644,8 +644,8 @@ void QGIViewBalloon::drawBalloon(bool dragged)
y = Rez::guiX(balloon->Y.getValue() * refObj->getScale());
}
else {
x = Rez::guiX(balloonLabel->X() / refObj->getScale());
y = -Rez::guiX(balloonLabel->Y() / refObj->getScale());
x = balloonLabel->X();
y = -balloonLabel->Y();
}
Base::Vector3d lblCenter(x, -y, 0.0);

Expand Down

0 comments on commit da4f6ce

Please sign in to comment.