svn commit: r14068 - trunk/src_new/org/argouml/persistence/PGMLStackParser.java
| Newsgroups | gmane.comp.lang.uml.argouml.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: mvw
Date: 2008-01-30 10:27:18-0800
New Revision: 14068
Modified:
trunk/src_new/org/argouml/persistence/PGMLStackParser.java
Log:
Correction on one of my previous commits for issue 4951.
Do not alter bold/italic if it is not specified.
Modified: trunk/src_new/org/argouml/persistence/PGMLStackParser.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src_new/org/argouml/persistence/PGMLStackParser.java?view=diff&rev=14068&p1=trunk/src_new/org/argouml/persistence/PGMLStackParser.java&p2=trunk/src_new/org/argouml/persistence/PGMLStackParser.java&r1=14067&r2=14068
==============================================================================
--- trunk/src_new/org/argouml/persistence/PGMLStackParser.java (original)
+++ trunk/src_new/org/argouml/persistence/PGMLStackParser.java 2008-01-30 10:27:18-0800
@@ -178,13 +178,13 @@
if (justification != null && !justification.equals("")) {
text.setJustificationByName(justification);
}
- Boolean italic = Boolean.valueOf(attributes.getValue("italic"));
+ String italic = attributes.getValue("italic");
if (italic != null && !italic.equals("")) {
- text.setItalic(italic);
+ text.setItalic(Boolean.valueOf(italic));
}
- Boolean bold = Boolean.valueOf(attributes.getValue("bold"));
+ String bold = attributes.getValue("bold");
if (bold != null && !bold.equals("")) {
- text.setBold(bold);
+ text.setBold(Boolean.valueOf(bold));
}
return new FigTextHandler(this, text);