[Uml-devel] kdesdk/umbrello/umbrello

Oliver Kellogg okellogg at users.sourceforge.net
Fri Apr 9 10:28:11 UTC 2004


CVS commit by okellogg: 

getLineWidth(): The line width configuration spinbox permits values
 up to 10.


  M +5 -2      linepath.cpp   1.27


--- kdesdk/umbrello/umbrello/linepath.cpp  #1.26:1.27
@@ -808,7 +808,10 @@ uint LinePath::getLineWidth() {
                 return 0;
         UMLView * view =  (UMLView *)m_pAssociation -> parent();
-        if ( view -> getLineWidth() < 3 ) return view -> getLineWidth();
+        int viewLineWidth = view->getLineWidth();
+        if ( viewLineWidth >= 0 && viewLineWidth <= 10 )
+                return viewLineWidth;
         else {
-                kdWarning() << "Ignore wrong LineWidth of " << view -> getLineWidth() << " in LinePath::getLineWidth" << endl;
+                kdWarning() << "Ignore wrong LineWidth of " << viewLineWidth
+                            << " in LinePath::getLineWidth" << endl;
                 return 0;
         }






More information about the umbrello-devel mailing list