summaryrefslogtreecommitdiff
path: root/vcl/source/filter/svm/SvmWriter.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/filter/svm/SvmWriter.cxx')
-rw-r--r--vcl/source/filter/svm/SvmWriter.cxx14
1 files changed, 14 insertions, 0 deletions
diff --git a/vcl/source/filter/svm/SvmWriter.cxx b/vcl/source/filter/svm/SvmWriter.cxx
index b4c373a16946..8733e493b254 100644
--- a/vcl/source/filter/svm/SvmWriter.cxx
+++ b/vcl/source/filter/svm/SvmWriter.cxx
@@ -85,6 +85,12 @@ void SvmWriter::MetaActionHandler(MetaAction* pAct, ImplMetaWriteData* pData)
PixelHandler(pMetaAction);
}
break;
+ case MetaActionType::POINT:
+ {
+ auto pMetaAction = static_cast<MetaPointAction*>(pAct);
+ PointHandler(pMetaAction);
+ }
+ break;
default:
pAct->Write(mrStream, pData);
}
@@ -103,4 +109,12 @@ void SvmWriter::PixelHandler(MetaPixelAction* pAct)
aSerializer.writePoint(pAct->GetPoint());
WriteColor(pAct->GetColor());
}
+
+void SvmWriter::PointHandler(MetaPointAction* pAct)
+{
+ ActionHandler(pAct->GetType());
+ VersionCompatWrite aCompat(mrStream, 1);
+ TypeSerializer aSerializer(mrStream);
+ aSerializer.writePoint(pAct->GetPoint());
+}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */