Kaydet (Commit) b7325b90 authored tarafından Maxim Monastirsky's avatar Maxim Monastirsky

fdo#45418 xslt: Make sure we're reading from the beginning

Change-Id: Id5beb6af8c32ab45d7e31120d38966f8fe4d5418
üst 596ec6f5
......@@ -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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment