Skip to content

Commit

Permalink
Merge branch 'release/4.4.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-gomes committed Aug 11, 2020
2 parents 37f025b + 9e7e857 commit 2f79187
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version=4.4.0
version=4.4.1
group=org.openmbee.magicdraw.mdk
descriptorFile=MDR_Plugin_Model_Development_Kit_91110_descriptor.xml
magicdDrawGroupName=gov.nasa.jpl.cae.magicdraw.mdk
Expand Down
7 changes: 6 additions & 1 deletion src/main/java/gov/nasa/jpl/mbee/mdk/util/MDUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,12 @@ public static void exportSVG(File svgFile, DiagramPresentationElement diagramPre
Transformer transformer = transformerFactory.newTransformer();
transformer.transform(source, result);
} finally {
System.setProperty(SVG_ENRICHED_EXPORT_PROPERTY_NAME, originalSvgEnrichedExportPropertyValue);
if (originalSvgEnrichedExportPropertyValue != null) {
System.setProperty(SVG_ENRICHED_EXPORT_PROPERTY_NAME, originalSvgEnrichedExportPropertyValue);
}
else {
System.clearProperty(SVG_ENRICHED_EXPORT_PROPERTY_NAME);
}
}
}

Expand Down

0 comments on commit 2f79187

Please sign in to comment.