From 5e946e575f666fd5b9bc40db542d4e9ccb918179 Mon Sep 17 00:00:00 2001 From: thomas_lucky13 Date: Sat, 10 Sep 2022 15:18:02 +0400 Subject: [PATCH] style set in adaptors --- src/adaptors/UBCFFSubsetAdaptor.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/adaptors/UBCFFSubsetAdaptor.cpp b/src/adaptors/UBCFFSubsetAdaptor.cpp index 068aed9b..2ffc153f 100644 --- a/src/adaptors/UBCFFSubsetAdaptor.cpp +++ b/src/adaptors/UBCFFSubsetAdaptor.cpp @@ -729,7 +729,16 @@ bool UBCFFSubsetAdaptor::UBCFFSubsetReader::parseSvgVector(const QDomElement &el QTransform transform; QString textTransform = element.attribute(aTransform); - //graphicsVector->setStyle(style); + if (style == 2) + { + graphicsVector->setStyle(UBVectorStyle::FromTo); + } else if (style == 1) + { + graphicsVector->setStyle(UBVectorStyle::From); + } else + { + graphicsVector->setStyle(UBVectorStyle::To); + } graphicsVector->resetTransform(); if (!textTransform.isNull()) {