diff options
author | Michael Stahl <mstahl@redhat.com> | 2014-11-19 23:54:18 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-11-19 23:56:59 +0100 |
commit | 6b9ab853b6a5fa71c0b6c594ed0e6e6016d13a3b (patch) | |
tree | e087bb9cd9e7469188d08aab193e74ecd99ea303 /sw/qa | |
parent | e3e064ed274cc88e5264e102720dc064bde1da6a (diff) |
fdo#85872: sw: fix crash in insert index dialog
Looks like the old code would create a link starting at the beginning in
this case, so let's do the same.
(regression from 94b296d5416dd71d721ad16216b50bce79e3dc04)
Change-Id: Idcd17ae51c478aa5c2a000c7b33a8244f06bd166
Diffstat (limited to 'sw/qa')
-rw-r--r-- | sw/qa/core/test_ToxLinkProcessor.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/qa/core/test_ToxLinkProcessor.cxx b/sw/qa/core/test_ToxLinkProcessor.cxx index e0ae1a1bd41e..7c16c18b03a6 100644 --- a/sw/qa/core/test_ToxLinkProcessor.cxx +++ b/sw/qa/core/test_ToxLinkProcessor.cxx @@ -64,7 +64,9 @@ ToxLinkProcessorTest::ExceptionIsThrownIfTooManyLinksAreClosed() ToxLinkProcessor sut; sut.StartNewLink(0, STYLE_NAME_1); sut.CloseLink(1, URL_1); - CPPUNIT_ASSERT_THROW(sut.CloseLink(1, URL_1), std::runtime_error); + // fdo#85872 actually it turns out the UI does something like this + // so an exception must not be thrown! + sut.CloseLink(1, URL_1); } void |