summaryrefslogtreecommitdiff
path: root/blocks
diff options
context:
space:
mode:
Diffstat (limited to 'blocks')
-rw-r--r--blocks/xcos2xml/blocks/TEXT_f.xsl7
1 files changed, 6 insertions, 1 deletions
diff --git a/blocks/xcos2xml/blocks/TEXT_f.xsl b/blocks/xcos2xml/blocks/TEXT_f.xsl
index 72e5ca91..9c0ee871 100644
--- a/blocks/xcos2xml/blocks/TEXT_f.xsl
+++ b/blocks/xcos2xml/blocks/TEXT_f.xsl
@@ -7,7 +7,12 @@
<xsl:variable name="commandPorts">0</xsl:variable>
<xsl:element name="mxCell">
<xsl:attribute name="style">
- <xsl:value-of select="@style" />
+ <xsl:choose>
+ <xsl:when test="@style != ''">
+ <xsl:value-of select="@style" />
+ </xsl:when>
+ <xsl:otherwise>TEXT_f</xsl:otherwise>
+ </xsl:choose>
</xsl:attribute>
<xsl:attribute name="id">
<xsl:value-of select="@id" />