summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/filter/svm/SvmReader.cxx19
1 files changed, 18 insertions, 1 deletions
diff --git a/vcl/source/filter/svm/SvmReader.cxx b/vcl/source/filter/svm/SvmReader.cxx
index 70105cf517a9..3cfe762de652 100644
--- a/vcl/source/filter/svm/SvmReader.cxx
+++ b/vcl/source/filter/svm/SvmReader.cxx
@@ -241,7 +241,7 @@ rtl::Reference<MetaAction> SvmReader::MetaActionHandler(ImplMetaReadData* pData)
return GradientHandler();
break;
case MetaActionType::GRADIENTEX:
- pAction = new MetaGradientExAction;
+ return GradientExHandler();
break;
case MetaActionType::HATCH:
pAction = new MetaHatchAction;
@@ -1043,4 +1043,21 @@ rtl::Reference<MetaAction> SvmReader::GradientHandler()
return pAction;
}
+
+rtl::Reference<MetaAction> SvmReader::GradientExHandler()
+{
+ auto pAction = new MetaGradientExAction();
+
+ VersionCompatRead aCompat(mrStream);
+ tools::PolyPolygon aPolyPoly;
+ ReadPolyPolygon(mrStream, aPolyPoly);
+ TypeSerializer aSerializer(mrStream);
+ Gradient aGradient;
+ aSerializer.readGradient(aGradient);
+
+ pAction->SetGradient(aGradient);
+ pAction->SetPolyPolygon(aPolyPoly);
+
+ return pAction;
+}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */