summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2014-08-06 12:30:22 +0300
committerMaxim Monastirsky <momonasmon@gmail.com>2014-08-06 12:36:18 +0300
commitb7325b907edf0cd8e2ca577e9796c1cf7d56bd70 (patch)
treee0abe64b4cf5d864b1f7c27b291c7c60a8d1678d /filter
parent596ec6f52fe3a8d56d5c20df568633cfbcadc74d (diff)
fdo#45418 xslt: Make sure we're reading from the beginning
Change-Id: Id5beb6af8c32ab45d7e31120d38966f8fe4d5418
Diffstat (limited to 'filter')
-rw-r--r--filter/source/xsltfilter/XSLTFilter.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/filter/source/xsltfilter/XSLTFilter.cxx b/filter/source/xsltfilter/XSLTFilter.cxx
index 26cb3a0e06c5..4c769e8d2202 100644
--- a/filter/source/xsltfilter/XSLTFilter.cxx
+++ b/filter/source/xsltfilter/XSLTFilter.cxx
@@ -58,6 +58,7 @@
#include <com/sun/star/io/XActiveDataSource.hpp>
#include <com/sun/star/io/XActiveDataSink.hpp>
#include <com/sun/star/io/XActiveDataControl.hpp>
+#include <com/sun/star/io/XSeekable.hpp>
#include <com/sun/star/io/XStreamListener.hpp>
#include <com/sun/star/util/PathSubstitution.hpp>
#include <com/sun/star/util/XStringSubstitution.hpp>
@@ -338,6 +339,10 @@ namespace XSLT
{
try
{
+ css::uno::Reference<css::io::XSeekable> xSeek(xInputStream, UNO_QUERY);
+ if (xSeek.is())
+ xSeek->seek(0);
+
// we want to be notfied when the processing is done...
m_tcontrol->addListener(css::uno::Reference<XStreamListener> (
this));