diff --git a/uppsrc/CtrlCore/GtkDrawOp.cpp b/uppsrc/CtrlCore/GtkDrawOp.cpp index 277ee2cb3..b49d358f6 100644 --- a/uppsrc/CtrlCore/GtkDrawOp.cpp +++ b/uppsrc/CtrlCore/GtkDrawOp.cpp @@ -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)