Skip to content
Snippets Groups Projects
Commit 13462b44 authored by stepan's avatar stepan
Browse files

FastR Grid: Capitalize image device names to match GNU R

parent 05bcd266
No related branches found
No related tags found
No related merge requests found
......@@ -101,7 +101,7 @@ public final class InitWindowedDevice extends RExternalBuiltinNode {
String filename = name.substring(name.lastIndexOf(':') + 1);
try {
BufferedImageDevice device = BufferedImageDevice.open(filename, formatName, width, height);
GridContext.getContext().setCurrentDevice(formatName, device);
GridContext.getContext().setCurrentDevice(formatName.toUpperCase(), device);
} catch (NotSupportedImageFormatException e) {
throw error(Message.GENERIC, String.format("Format '%s' is not supported.", formatName));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment