[TD]fix Balloon placement issues

- contributed by @lidiriel
This commit is contained in:
WandererFan
2019-12-25 16:43:38 -05:00
committed by WandererFan
parent 134f9d4f26
commit ccd107f1ce
5 changed files with 82 additions and 29 deletions

View File

@@ -639,7 +639,7 @@ QGIView * QGVPage::findParent(QGIView *view) const
balloon = dynamic_cast<TechDraw::DrawViewBalloon *>(myFeat);
if(balloon) {
App::DocumentObject* obj = balloon->sourceView.getValue();
App::DocumentObject* obj = balloon->SourceView.getValue();
if(obj) {
// Attach the dimension to the first object's group
@@ -1163,7 +1163,7 @@ void QGVPage::mouseReleaseEvent(QMouseEvent *event)
throw Base::TypeError("CmdTechDrawNewBalloon - balloon not found\n");
}
balloon->sourceView.setValue(getDrawPage()->balloonParent);
balloon->SourceView.setValue(getDrawPage()->balloonParent);
balloon->origin = mapToScene(event->pos());
Gui::Command::commitCommand();