summaryrefslogtreecommitdiff
path: root/sw/qa/unit/swtiledrenderingtest.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/qa/unit/swtiledrenderingtest.cxx')
-rw-r--r--sw/qa/unit/swtiledrenderingtest.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/sw/qa/unit/swtiledrenderingtest.cxx b/sw/qa/unit/swtiledrenderingtest.cxx
index 8aa80f1c68a3..3ea1a08352b4 100644
--- a/sw/qa/unit/swtiledrenderingtest.cxx
+++ b/sw/qa/unit/swtiledrenderingtest.cxx
@@ -190,6 +190,13 @@ void SwTiledRenderingTest::callbackImpl(int nType, const char* pPayload)
boost::property_tree::ptree& aChild = aTree.get_child("hyperlink");
m_sHyperlinkText = OString(aChild.get("text", ""));
m_sHyperlinkLink = OString(aChild.get("link", ""));
+
+ OString aRectangle(aTree.get_child("rectangle").get_value<std::string>());
+ uno::Sequence<OUString> aSeq
+ = comphelper::string::convertCommaSeparated(OUString::fromUtf8(aRectangle));
+ CPPUNIT_ASSERT_EQUAL(static_cast<sal_Int32>(4), aSeq.getLength());
+ m_aCursorRectangle = tools::Rectangle(Point(aSeq[0].toInt32(), aSeq[1].toInt32()),
+ Size(aSeq[2].toInt32(), aSeq[3].toInt32()));
}
}
break;