[BUGFIX] Trick to avoid a lot of IllegalStateException

This commit is contained in:
maximesinclair
2013-10-31 22:54:53 +01:00
parent d7192bf8e0
commit ac9d0e02ca
3 changed files with 4 additions and 4 deletions

View File

@@ -64,7 +64,7 @@ class DiagramResponse {
}
response.setContentType(getContentType());
SourceStringReader reader = new SourceStringReader(uml);
reader.generateImage(response.getOutputStream(), new FileFormatOption(format));
reader.generateImage(response.getOutputStream(), new FileFormatOption(format, false));
}
void sendMap(String uml) throws IOException {
@@ -73,7 +73,7 @@ class DiagramResponse {
}
response.setContentType(getContentType());
SourceStringReader reader = new SourceStringReader(uml);
String map = reader.generateImage(new NullOutputStream(), new FileFormatOption(FileFormat.PNG));
String map = reader.generateImage(new NullOutputStream(), new FileFormatOption(FileFormat.PNG, false));
String[] mapLines = map.split("[\\r\\n]");
PrintWriter httpOut = response.getWriter();
for (int i=2; (i+1)<mapLines.length; i++) {