diff options
author | Michael Stahl <mstahl@redhat.com> | 2017-05-03 22:03:10 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2017-05-03 22:44:32 +0200 |
commit | 72097be9ca128083ed5b1cf5a5166ea7419891c5 (patch) | |
tree | 19c3b2a2091ccb61d463d7fba54e9dba36f6ec11 /sd | |
parent | f5a89dac29f745527ed8c437d4a138ebd0f2f4f8 (diff) |
svx: SdrObjEditView::SdrEndTextEdit() must be called after SdrBeginTextEdit()
... to prevent disasters with managing the UndoManager, so assert that.
Change-Id: Id577ea465e21e3d358b3ff0bb36de0af34e0b69d
Diffstat (limited to 'sd')
-rw-r--r-- | sd/qa/unit/tiledrendering/tiledrendering.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sd/qa/unit/tiledrendering/tiledrendering.cxx b/sd/qa/unit/tiledrendering/tiledrendering.cxx index 08e1bc197dd6..6242349d3ce0 100644 --- a/sd/qa/unit/tiledrendering/tiledrendering.cxx +++ b/sd/qa/unit/tiledrendering/tiledrendering.cxx @@ -1333,6 +1333,7 @@ void SdTiledRenderingTest::testTdf102223() uno::Sequence<beans::PropertyValue> aArgs; comphelper::dispatchCommand(".uno:Cut", aArgs); + pView->SdrEndTextEdit(false); pView->SdrBeginTextEdit(pTableObject); CPPUNIT_ASSERT(pView->GetTextEditObject()); EditView& rEditView2 = pView->GetTextEditOutlinerView()->GetEditView(); @@ -1489,6 +1490,7 @@ void SdTiledRenderingTest::testTdf104405() // now click on the table pView->MarkObj(pTableObject, pView->GetSdrPageView()); pTableObject->setActiveCell(sdr::table::CellPos(0,0)); + pView->SdrEndTextEdit(false); pView->SdrBeginTextEdit(pTableObject); EditView& rEditView2 = pView->GetTextEditOutlinerView()->GetEditView(); rEditView2.SetSelection(ESelection(0, 0, 0, 3)); // start para, start char, end para, end char. |