Commit 43b37399 authored by twanvl's avatar twanvl

(delete commented out code)

parent 6389bf95
......@@ -43,15 +43,6 @@ void ImageValueViewer::draw(RotatedDC& dc) {
image = value().value->toImage()->generateConform(opts);
}
} CATCH_ALL_ERRORS(false);
/*
if (!value().filename.empty()) {
try {
InputStreamP image_file = getLocalPackage().openIn(value().filename);
if (image.LoadFile(*image_file)) {
image.Rescale(w, h);
}
} CATCH_ALL_ERRORS(false);
}*/
// nice placeholder
if (!image.Ok() && style().default_image.isReady()) {
image = style().default_image.generate(GeneratedImage::Options(w, h, &getStylePackage(), &getLocalPackage()));
......
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