[umbrello] [Bug 409631] Associations are sometime not addable in class diagram

2019-11-25 Thread Ralf Habacker
https://bugs.kde.org/show_bug.cgi?id=409631

Ralf Habacker  changed:

   What|Removed |Added

 OS|MS Windows  |All

-- 
You are receiving this mail because:
You are watching all bug changes.

[umbrello] [Bug 409631] Associations are sometime not addable in class diagram

2019-11-25 Thread Ralf Habacker
https://bugs.kde.org/show_bug.cgi?id=409631

Ralf Habacker  changed:

   What|Removed |Added

  Latest Commit||https://invent.kde.org/kde/
   ||umbrello/commit/3921d117b7b
   ||6dba3a7860e35b7266bc49d2a02
   ||b4
 Status|REPORTED|RESOLVED
   Version Fixed In||2.29.90 (KDE Applications
   ||19.11.90)
 Resolution|--- |FIXED

--- Comment #4 from Ralf Habacker  ---
Git commit 3921d117b7b6dba3a7860e35b7266bc49d2a02b4 by Ralf Habacker.
Committed on 25/11/2019 at 15:46.
Pushed by habacker into branch 'release/19.12'.

Fix 'Associations are sometime not addable in class diagram'

On error, itemAt() returned the graphical element for the visual
connection, not the selected widget.

BUG:409631
FIXED-IN:2.29.90 (KDE Applications 19.11.90)

M  +11   -6umbrello/umlscene.cpp

https://invent.kde.org/kde/umbrello/commit/3921d117b7b6dba3a7860e35b7266bc49d2a02b4

-- 
You are receiving this mail because:
You are watching all bug changes.

[umbrello] [Bug 409631] Associations are sometime not addable in class diagram

2019-11-25 Thread Ralf Habacker
https://bugs.kde.org/show_bug.cgi?id=409631

--- Comment #3 from Ralf Habacker  ---
In normal case UMLWidget* UMLScene::widgetAt(const QPointF& p) returns correct
widget instances

1. click
ClassifierWidget(0x1e64b40)  

2. click
ClassifierWidget(0x1d14670)


In the error case there is returned: 

1. click
ClassifierWidget(this = 0x1d14680) 

2. click
QGraphicsItem (0x15fdad0)

which obviously isn't the right widget.

-- 
You are receiving this mail because:
You are watching all bug changes.

[umbrello] [Bug 409631] Associations are sometime not addable in class diagram

2019-11-25 Thread Ralf Habacker
https://bugs.kde.org/show_bug.cgi?id=409631

--- Comment #2 from Ralf Habacker  ---
STEPS TO REPRODUCE
1. start umbrello
2. add two classes
3. move second widget
4. add an association from first to second widget

OBSERVED RESULT
The requested association is not added to the diagram

EXPECTED RESULT
The requested association should be added to the diagram

-- 
You are receiving this mail because:
You are watching all bug changes.

[umbrello] [Bug 409631] Associations are sometime not addable in class diagram

2019-11-25 Thread Ralf Habacker
https://bugs.kde.org/show_bug.cgi?id=409631

--- Comment #1 from Ralf Habacker  ---
Today I got the same error with a component diagram. After selecting the first
widget clicking on the second widget do not connect both widgets. 
In a debug session it turned out that in the error case 
UMLScene::widgetAt(m_pMouseEvent->scenePos()) did not return the second widget
in 

void ToolBarState::setCurrentElement()
{
... 
// Check widgets.
UMLWidget *widget = m_pUMLScene->widgetAt(m_pMouseEvent->scenePos());
if (widget) {
setCurrentWidget(widget);
return;
}
}

-- 
You are receiving this mail because:
You are watching all bug changes.