Commit f0afd735 authored by Ralf Habacker's avatar Ralf Habacker
Browse files

Fix center position for showing port widgets

Port widgets are childs of component widgets, for which pos() returns
local position. Therefore we need to use scenePos() to get the
absolute scene position.

CCBUG:403515
parent 4cd475f3
......@@ -691,7 +691,7 @@ void UMLListView::slotMenuSelection(QAction* action, const QPoint &position)
if (UMLApp::app()->currentView() != view) {
UMLApp::app()->setCurrentView(view, false);
}
view->centerOn(selectedResult->pos());
view->centerOn(selectedResult->scenePos());
selectedResult->setSelected(true);
}
break;
......
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