make sure only a slash is stored in the XML, even on Windows systems.

This commit is contained in:
hneemann 2016-06-10 07:55:00 +02:00
parent 111f1b1a2f
commit cc461277c3

View File

@ -261,7 +261,7 @@ public class LibrarySelector implements ElementNotFoundNotification {
* @param inputNames the names of the input signals * @param inputNames the names of the input signals
*/ */
public ElementTypeDescriptionCustom(File file, ElementFactory elementFactory, ElementAttributes attributes, PinDescription... inputNames) { public ElementTypeDescriptionCustom(File file, ElementFactory elementFactory, ElementAttributes attributes, PinDescription... inputNames) {
super(file.getPath(), elementFactory, inputNames); super(file.getPath().replace('\\', '/'), elementFactory, inputNames);
this.file = file; this.file = file;
this.attributes = attributes; this.attributes = attributes;
if (attributes.contains(Keys.DESCRIPTION)) if (attributes.contains(Keys.DESCRIPTION))