summaryrefslogtreecommitdiff
path: root/svgio/source/svgreader/svggradientnode.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svgio/source/svgreader/svggradientnode.cxx')
-rw-r--r--svgio/source/svgreader/svggradientnode.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/svgio/source/svgreader/svggradientnode.cxx b/svgio/source/svgreader/svggradientnode.cxx
index e22ffba7f0cd..893ff9657b93 100644
--- a/svgio/source/svgreader/svggradientnode.cxx
+++ b/svgio/source/svgreader/svggradientnode.cxx
@@ -54,6 +54,7 @@ namespace svgio
maXLink(),
mpXLink(0)
{
+ OSL_ENSURE(aType == SVGTokenLinearGradient || aType == SVGTokenRadialGradient, "SvgGradientNode should ony be used for Linear and Radial gradient (!)");
}
SvgGradientNode::~SvgGradientNode()