summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2019-01-25 17:01:12 +0100
committerTomaž Vajngerl <quikee@gmail.com>2019-03-04 12:32:10 +0100
commite881cb41363874f1644728f2d35dc057e7e484ec (patch)
tree5c90eb881fe0c2ac581cfa98ea72c7a38ecc8d2f /vcl
parent9d86d3538b588d1e4864b9d26c301cd8d6932858 (diff)
draw polyline and polygon when drawing rect draw command
Change-Id: Ic00d090e0aa85d451a50be52794606546021be38 Reviewed-on: https://gerrit.libreoffice.org/68671 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/gdi/FileDefinitionWidgetDraw.cxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/vcl/source/gdi/FileDefinitionWidgetDraw.cxx b/vcl/source/gdi/FileDefinitionWidgetDraw.cxx
index 600b736c3c7c..854066694e22 100644
--- a/vcl/source/gdi/FileDefinitionWidgetDraw.cxx
+++ b/vcl/source/gdi/FileDefinitionWidgetDraw.cxx
@@ -107,10 +107,17 @@ void munchDrawCommands(std::vector<std::shared_ptr<DrawCommand>> const& rDrawCom
rRectDrawCommand.mnRx, rRectDrawCommand.mnRy);
basegfx::B2DPolygon aB2DPolygon(aPolygon.getB2DPolygon());
- rGraphics.SetLineColor(rRectDrawCommand.maStrokeColor);
+ rGraphics.SetLineColor();
rGraphics.SetFillColor(rRectDrawCommand.maFillColor);
rGraphics.DrawPolyPolygon(basegfx::B2DHomMatrix(),
basegfx::B2DPolyPolygon(aB2DPolygon), 0.0f, nullptr);
+ rGraphics.SetLineColor(rRectDrawCommand.maStrokeColor);
+ rGraphics.SetFillColor();
+ rGraphics.DrawPolyLine(basegfx::B2DHomMatrix(), aB2DPolygon, 0.0f,
+ basegfx::B2DVector(rRectDrawCommand.mnStrokeWidth,
+ rRectDrawCommand.mnStrokeWidth),
+ basegfx::B2DLineJoin::Round, css::drawing::LineCap_ROUND,
+ 0.0f, false, nullptr);
}
break;
case DrawCommandType::CIRCLE: