diff --git a/sw/qa/extras/htmlexport/xhtmlexport.cxx b/sw/qa/extras/htmlexport/xhtmlexport.cxx
index b03f184818fd..9f5b26745f5b 100644
--- a/sw/qa/extras/htmlexport/xhtmlexport.cxx
+++ b/sw/qa/extras/htmlexport/xhtmlexport.cxx
@@ -54,6 +54,22 @@ DECLARE_HTMLEXPORT_TEST(testTdf131812, "tdf131812.odt")
!= -1);
}
+DECLARE_HTMLEXPORT_TEST(testTdf146264, "tdf146264.odt")
+{
+ SvStream* pStream = maTempFile.GetStream(StreamMode::READ);
+ CPPUNIT_ASSERT(pStream);
+ sal_uInt64 nLength = pStream->TellEnd();
+ OString aStream(read_uInt8s_ToOString(*pStream, nLength));
+ sal_Int32 nFirstHello = aStream.indexOf("Hello");
+ CPPUNIT_ASSERT(nFirstHello > 0);
+ if (nFirstHello > 0)
+ {
+ sal_Int32 nSecondHello = aStream.indexOf("Hello", nFirstHello + 1);
+ constexpr sal_Int32 nMinusOne = -1;
+ CPPUNIT_ASSERT_EQUAL(nMinusOne, nSecondHello);
+ }
+}
+
DECLARE_HTMLEXPORT_TEST(testTdf118637, "tdf118637.odt")
{
SvStream* pStream = maTempFile.GetStream(StreamMode::READ);
diff --git a/sw/qa/extras/odfexport/data/tdf146264.odt b/sw/qa/extras/odfexport/data/tdf146264.odt
new file mode 100644
index 000000000000..941c7db74fb0
Binary files /dev/null and b/sw/qa/extras/odfexport/data/tdf146264.odt differ