summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2014-08-06 12:30:22 +0300
committerDavid Tardon <dtardon@redhat.com>2014-08-06 13:44:38 +0000
commite9affcdc32fe6796b60b5b4d484b296f70e745b2 (patch)
tree30192b32ef2befc288f2dc5121e75291f536e0ed
parent8980637bfb843016473fad5cb9dce0a6ca1297b1 (diff)
fdo#45418 xslt: Make sure we're reading from the beginning
Change-Id: Id5beb6af8c32ab45d7e31120d38966f8fe4d5418 (cherry picked from commit b7325b907edf0cd8e2ca577e9796c1cf7d56bd70) Reviewed-on: https://gerrit.libreoffice.org/10786 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
-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));