svn commit: r16769 - trunk/src/argouml-app/src/org/argouml/uml/diagram: static_structure/ui ui

Thomas Neustupny <[email protected]>
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: thn
Date: 2009-02-04 14:38:04-0800
New Revision: 16769

Modified:
   trunk/src/argouml-app/src/org/argouml/uml/diagram/static_structure/ui/FigEnumeration.java
   trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/FigEnumLiteralsCompartment.java

Log:
Fix for issue 5652: enumeration fig broken

Modified: trunk/src/argouml-app/src/org/argouml/uml/diagram/static_structure/ui/FigEnumeration.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/diagram/static_structure/ui/FigEnumeration.java?view=diff&pathrev=16769&r1=16768&r2=16769
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/uml/diagram/static_structure/ui/FigEnumeration.java	(original)
+++ trunk/src/argouml-app/src/org/argouml/uml/diagram/static_structure/ui/FigEnumeration.java	2009-02-04 14:38:04-0800
@@ -281,9 +281,9 @@
             literalsHeight = Math.max(literalsHeight, 
                     (h - currentHeight) / visibleCompartments);
             getLiteralsCompartment().setBounds(
-                    x,
+                    x + 1,
                     y + currentHeight,
-                    w,
+                    w - 1,
                     literalsHeight);
             currentHeight += literalsHeight;
         }

Modified: trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/FigEnumLiteralsCompartment.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/FigEnumLiteralsCompartment.java?view=diff&pathrev=16769&r1=16768&r2=16769
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/FigEnumLiteralsCompartment.java	(original)
+++ trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/FigEnumLiteralsCompartment.java	2009-02-04 14:38:04-0800
@@ -78,11 +78,6 @@
         // the user can't double click in the compartment to add a new literal
         // Apparently GEF thinks unfilled figs are only selectable by border
 //        setFilled(false);
-
-        // We need the width of the outline fig (bigPort) for the compartment
-        // to match the width of the outer fig so that the outer fig doesn't
-        // get overwritten by our fill
-        setLineWidth(LINE_WIDTH);
     }
     
     /*

------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=1104544

To unsubscribe from this discussion, e-mail: [[email protected]].
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.