summaryrefslogtreecommitdiff
path: root/starmath/source/cursor.cxx
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2013-09-09 08:52:34 +0200
committerThomas Arnhold <thomas@arnhold.org>2013-09-09 08:52:40 +0200
commit6031d34ec26b988853c4b317945b3b4256813cbc (patch)
tree37732eeceb93e6b8d4ba7e1f7b21a5e6a769cc77 /starmath/source/cursor.cxx
parentd8919a1bcca1aa0b18634be918f6bf08c6c55a3f (diff)
Math: OSL_FAIL -> SAL_WARN
And some cleanup. Change-Id: I2e5239a6f7d0dca5855b80752deae6be27c21af6
Diffstat (limited to 'starmath/source/cursor.cxx')
-rw-r--r--starmath/source/cursor.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/starmath/source/cursor.cxx b/starmath/source/cursor.cxx
index 002e5fe1cf25..ce86a32a11b9 100644
--- a/starmath/source/cursor.cxx
+++ b/starmath/source/cursor.cxx
@@ -64,7 +64,7 @@ void SmCursor::Move(OutputDevice* pDev, SmMovementDirection direction, bool bMov
}
}break;
default:
- OSL_FAIL("Movement direction not supported!");
+ SAL_WARN("starmath", "Movement direction not supported!");
}
if(NewPos){
position = NewPos;
@@ -900,7 +900,7 @@ bool SmCursor::InsertRow() {
}
pMatrix->SetRowCol(rows + 1, cols);
} else
- OSL_FAIL("We must be either the context of a table or matrix!");
+ SAL_WARN("starmath", "We must be either the context of a table or matrix!");
//Finish editing
FinishEdit(pLineList, pLineParent, nParentIndex, PosAfterInsert);
@@ -1077,7 +1077,7 @@ void SmCursor::InsertElement(SmFormulaElement element){
pNewNode = new SmMathSymbolNode(token);
}break;
default:
- OSL_FAIL("Element unknown!");
+ SAL_WARN("starmath", "Element unknown!");
}
OSL_ENSURE(pNewNode != NULL, "No new node was created!");
if(!pNewNode)