1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-09-28 06:59:02 +00:00

Merge pull request #173 from qwazer/nwdiag

Add ability to use any shape from USymbol in nwdiag elements.
This commit is contained in:
arnaudroques 2019-02-06 15:48:34 +01:00 committed by GitHub
commit 10a4c323b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -109,11 +109,9 @@ public class DiagElement {
}
public final void setShape(String shapeName) {
if ("database".equalsIgnoreCase(shapeName)) {
this.shape = USymbol.DATABASE;
}
if ("node".equalsIgnoreCase(shapeName)) {
this.shape = USymbol.NODE;
USymbol shapeFromString = USymbol.getFromString(shapeName);
if (shapeFromString!=null){
this.shape = shapeFromString;
}
}