Commit 45625dc6 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

clearing colors should set border to black

parent 1c5a151b
......@@ -34,7 +34,6 @@ public class ColorModelCommand extends ModelCommand {
/**
* Default class logger.
*/
@SuppressWarnings("unused")
private Logger logger = LogManager.getLogger(ColorModelCommand.class);
/**
......@@ -162,6 +161,7 @@ public class ColorModelCommand extends ModelCommand {
throw new InvalidColorSchemaException("At least two rows try to set color to element: " + element.getName());
}
element.setFillColor(colorExtractor.getNormalizedColor(schema));
element.setBorderColor(Color.BLACK);
}
}
......@@ -338,6 +338,7 @@ public class ColorModelCommand extends ModelCommand {
private void colorModel(Model result, boolean top) throws InvalidColorSchemaException {
for (Element element : result.getElements()) {
element.setBorderColor(Color.BLACK);
element.setFillColor(Color.WHITE);
element.setGlyph(null);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment