Fix bug creating bitmaps with width < 0 in draw_color() function

This commit is contained in:
David Capello 2013-11-15 15:46:54 -03:00
parent 055907d008
commit f59f6f7d5e

View File

@ -317,6 +317,9 @@ void draw_emptyset_symbol(BITMAP* bmp, const Rect& rc, ui::Color color)
void draw_color(BITMAP* bmp, const Rect& rc, PixelFormat pixelFormat, const app::Color& color)
{
if (rc.w <= 0 || rc.h <= 0)
return;
app::Color::Type type = color.getType();
BITMAP* graph;