[Uml-devel] branches/work/soc-umbrello/umbrello/widgets
Ralf Habacker
Ralf.Habacker at freenet.de
Thu Jun 17 06:09:19 UTC 2010
SVN commit 1138889 by habacker:
fixed crash when there are no points in associationLine
M +1 -1 associationwidget.cpp
--- branches/work/soc-umbrello/umbrello/widgets/associationwidget.cpp #1138888:1138889
@@ -356,7 +356,7 @@
const uint numSegments = m_associationLine->count()-1;
const uint lastSegmentIndex = numSegments-1;
- if (numSegments == 0) {
+ if (numSegments <= 0) {
uError() << "Called when it had zero segments";
return;
}
More information about the umbrello-devel
mailing list