From 0090af19d321991487a61a068e4547d091eafda0 Mon Sep 17 00:00:00 2001 From: Guillaume Munch Date: Mon, 1 Aug 2016 20:50:46 +0100 Subject: [PATCH] Fix aliasing logic for polylines --- src/frontends/qt4/GuiPainter.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/frontends/qt4/GuiPainter.cpp b/src/frontends/qt4/GuiPainter.cpp index 5762c9b958..65d95f69bf 100644 --- a/src/frontends/qt4/GuiPainter.cpp +++ b/src/frontends/qt4/GuiPainter.cpp @@ -213,7 +213,7 @@ void GuiPainter::lines(int const * xp, int const * yp, int np, if (np > points.size()) points.resize(2 * np); - bool antialias = ls != line_solid_aliased; + bool antialias = false; for (int i = 0; i < np; ++i) { points[i].setX(xp[i]); points[i].setY(yp[i]); @@ -223,7 +223,8 @@ void GuiPainter::lines(int const * xp, int const * yp, int np, QColor const color = computeColor(col); setQPainterPen(color, ls, lw); bool const text_is_antialiased = renderHints() & TextAntialiasing; - setRenderHint(Antialiasing, antialias && text_is_antialiased); + setRenderHint(Antialiasing, + antialias && text_is_antialiased && ls != line_solid_aliased); if (fs == fill_none) { drawPolyline(points.data(), np); } else {