CtrlCore: fixed issue with GTK/DrawLine #1344

git-svn-id: svn://ultimatepp.org/upp/trunk@9239 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2015-11-26 18:16:09 +00:00
parent 0fec8defc2
commit b6f149fa57

View file

@ -180,6 +180,8 @@ void SystemDraw::DrawLineOp(int x1, int y1, int x2, int y2, int width, Color col
{
if(IsNull(width) || IsNull(color))
return;
if(width == 0)
width = 1;
FlushText();
SetColor(color);
if(width == PEN_SOLID)