[Libreoffice-commits] core.git: Branch 'libreoffice-4-3' - filter/source
Maxim Monastirsky
momonasmon at gmail.com
Wed Aug 6 06:45:00 PDT 2014
filter/source/xsltfilter/XSLTFilter.cxx | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit e9affcdc32fe6796b60b5b4d484b296f70e745b2
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
(cherry picked from commit b7325b907edf0cd8e2ca577e9796c1cf7d56bd70)
Reviewed-on: https://gerrit.libreoffice.org/10786
Reviewed-by: David Tardon <dtardon at redhat.com>
Tested-by: David Tardon <dtardon at redhat.com>
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