Kaydet (Commit) 668730fb authored tarafından Armin Le Grand's avatar Armin Le Grand Kaydeden (comit) Caolán McNamara

Resolves: #i123359# need to call SdrEndTextEdit before...

manipulating objects at model/view

(cherry picked from commit b5e85649)

Change-Id: Ie282370c7fc2dea4f9d59d85aac742b41d7c4541
üst 57a28dc9
......@@ -162,6 +162,15 @@ void DrawViewShell::FuTable(SfxRequest& rReq)
apply_table_style( pObj, GetDoc(), sTableStyle );
SdrPageView* pPV = mpView->GetSdrPageView();
// #i123359# if an object is to be replaced/manipulated it may be that it is in text edit mode,
// so to be on the safe side call SdrEndTextEdit here
SdrTextObj* pCheckForTextEdit = dynamic_cast< SdrTextObj* >(pPickObj);
if(pCheckForTextEdit && pCheckForTextEdit->IsInEditMode())
{
mpView->SdrEndTextEdit();
}
// if we have a pick obj we need to make this new ole a pres obj replacing the current pick obj
if( pPickObj )
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment