Commit cb0ab438 authored by twanvl's avatar twanvl

always draw checkerboard behind default image

parent 6d5474aa
......@@ -109,10 +109,11 @@ Bitmap ImageValueViewer::imagePlaceholder(const Rotation& rot, UInt w, UInt h, c
RealRect rect(0,0,w,h);
RotatedDC dc(mdc, 0, rect, 1.0, QUALITY_AA);
// Draw (checker) background
if (!background.Ok() || background.HasAlpha()) {
draw_checker(dc, rect);
}
if (background.Ok()) {
dc.DrawImage(background, RealPoint(0,0));
} else {
draw_checker(dc, rect);
}
// Draw text
if (editing) {
......
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