[Libreoffice-commits] core.git: filter/source
Maxim Monastirsky
momonasmon at gmail.com
Wed Aug 6 02:37:23 PDT 2014
filter/source/xsltfilter/XSLTFilter.cxx | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit b7325b907edf0cd8e2ca577e9796c1cf7d56bd70
Author: Maxim Monastirsky <momonasmon at gmail.com>
Date: Wed Aug 6 12:30:22 2014 +0300
fdo#45418 xslt: Make sure we're reading from the beginning
Change-Id: Id5beb6af8c32ab45d7e31120d38966f8fe4d5418
diff --git a/filter/source/xsltfilter/XSLTFilter.cxx b/filter/source/xsltfilter/XSLTFilter.cxx
index 26cb3a0..4c769e8 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));
More information about the Libreoffice-commits
mailing list