diff options
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/cursor.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/starmath/source/cursor.cxx b/starmath/source/cursor.cxx index 58a2a63fc66e..262d2bd85062 100644 --- a/starmath/source/cursor.cxx +++ b/starmath/source/cursor.cxx @@ -1073,12 +1073,8 @@ void SmCursor::InsertElement(SmFormulaElement element){ token.aText = "\"%\""; pNewNode = new SmMathSymbolNode(token); }break; - default: - SAL_WARN("starmath", "Element unknown!"); } - OSL_ENSURE(pNewNode != nullptr, "No new node was created!"); - if(!pNewNode) - return; + assert(pNewNode); //Prepare the new node pNewNode->Prepare(mpDocShell->GetFormat(), *mpDocShell); |