summaryrefslogtreecommitdiff
path: root/include/tools/poly.hxx
diff options
context:
space:
mode:
authorChris Sherlock <chris.sherlock79@gmail.com>2021-10-02 14:42:01 +1000
committerTomaž Vajngerl <quikee@gmail.com>2021-10-18 20:22:39 +0200
commited92e40aea759d435ec1c05877e6480654a06ab6 (patch)
treef17c311b0e3af859ad1a4bfa6d08f983ded43153 /include/tools/poly.hxx
parent9142d19ddc751e05041471aa1bbeca2f06729522 (diff)
vcl: test OutputDevice::DrawPolyPolygon()
Change-Id: I166f715489ecff3095ccfb485153629050bfca20 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122977 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'include/tools/poly.hxx')
-rw-r--r--include/tools/poly.hxx13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/tools/poly.hxx b/include/tools/poly.hxx
index 3c39f2d6c56b..d2ecf644af39 100644
--- a/include/tools/poly.hxx
+++ b/include/tools/poly.hxx
@@ -19,6 +19,7 @@
#ifndef INCLUDED_TOOLS_POLY_HXX
#define INCLUDED_TOOLS_POLY_HXX
+#include <rtl/ustring.hxx>
#include <tools/toolsdllapi.h>
#include <tools/gen.hxx>
#include <tools/degree.hxx>
@@ -272,6 +273,18 @@ inline std::basic_ostream<charT, traits> & operator <<(
if (i > 0)
stream << "--";
stream << poly.GetPoint(i);
+
+ OUString aFlag;
+ if (poly.GetFlags(i) == PolyFlags::Normal)
+ aFlag = "Normal";
+ else if (poly.GetFlags(i) == PolyFlags::Smooth)
+ aFlag = "Smooth";
+ else if (poly.GetFlags(i) == PolyFlags::Control)
+ aFlag = "Control";
+ else if (poly.GetFlags(i) == PolyFlags::Symmetric)
+ aFlag = "Symmetric";
+
+ stream << ";f=" << aFlag;
}
stream << ">";
return stream;