Kaydet (Commit) 567cd904 authored tarafından Caolán McNamara's avatar Caolán McNamara

turn switch with one case into if

Change-Id: I413f195bb5571eb536e948a7e9ffb982b3619e65
üst d832e126
......@@ -2765,9 +2765,7 @@ void SwContentTree::KeyInput(const KeyEvent& rEvent)
assert(dynamic_cast<SwContent*>(static_cast<SwTypeNumber*>(pEntry->GetUserData())));
SwContent* pCnt = static_cast<SwContent*>(pEntry->GetUserData());
switch(pCnt->GetParent()->GetType())
{
case ContentTypeId::DRAWOBJECT:
if (pCnt->GetParent()->GetType() == ContentTypeId::DRAWOBJECT)
{
SdrView* pDrawView = m_pActiveShell->GetDrawView();
if (pDrawView)
......@@ -2841,9 +2839,6 @@ void SwContentTree::KeyInput(const KeyEvent& rEvent)
}
}
}
break;
default: break;
}
m_bViewHasChanged = true;
}
......
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