summaryrefslogtreecommitdiff
path: root/sw/qa/unit/swtiledrenderingtest.cxx
diff options
context:
space:
mode:
authorGülşah Köse <gulsah.kose@collabora.com>2025-02-13 18:51:13 +0300
committerGülşah Köse <gulsah.kose@collabora.com>2025-04-08 19:28:36 +0200
commit8933bdc9db8110e980a24b1f7c3627b59a4a1ff1 (patch)
tree98cf1af8388af36e99005b50a97185a5c24a2dec /sw/qa/unit/swtiledrenderingtest.cxx
parent93bf5c795f2a4aa3f7e3e3ff102aa0ce7a44b44e (diff)
cool#11216 Remove unnecessary control to invalidate cursor
bPostItActive control is introduced by b9cc6653606c829805c6c01b9613a3a25d81c20b Then new annotation changes introduced by 69c546e1e7a697217f273baa7c1729ff823efd76 makes this control unnecessary so removed the test testWriterCommentInsertCursor introduced in first commit. To keep that control makes buggy finding text via "Find and Replace" dialog in comments. It never moves the visible cursor if the text matches only in comments Now it fixed. Signed-off-by: Gülşah Köse <gulsah.kose@collabora.com> Change-Id: Ice60b4de2ae65c400b49153c3a0a4f3cccb7ad87 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181634 Tested-by: Miklos Vajna <vmiklos@collabora.com> Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183844 Tested-by: Jenkins
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;