Author: kono
Date: 2012-03-13 16:12:07 -0700 (Tue, 13 Mar 2012)
New Revision: 28525
Modified:
core3/api/trunk/presentation-api/src/main/java/org/cytoscape/view/presentation/property/FontVisualProperty.java
Log:
fixes #731 Invalid entries will be ignored.
Modified:
core3/api/trunk/presentation-api/src/main/java/org/cytoscape/view/presentation/property/FontVisualProperty.java
===================================================================
---
core3/api/trunk/presentation-api/src/main/java/org/cytoscape/view/presentation/property/FontVisualProperty.java
2012-03-13 22:35:03 UTC (rev 28524)
+++
core3/api/trunk/presentation-api/src/main/java/org/cytoscape/view/presentation/property/FontVisualProperty.java
2012-03-13 23:12:07 UTC (rev 28525)
@@ -91,7 +91,7 @@
public Font parseSerializableString(final String text) {
Font font = null;
- if (text != null) {
+ if (text != null && text.trim().length() !=0) {
// e.g. "Monospaced,plain,12"
String name =
text.replaceAll("(\\.[bB]old)?,[a-zA-Z]+,\\d+(\\.\\d+)?", "");
--
You received this message because you are subscribed to the Google Groups
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/cytoscape-cvs?hl=en.