From d0d98b87751f4e5308916f509b72f14053caa61e Mon Sep 17 00:00:00 2001 From: Eivind Kvedalen Date: Fri, 12 Jun 2015 23:11:40 +0200 Subject: [PATCH] Spreadsheet: Fixed exception bug in SheetPy::setCustomAttributes(...). --- src/Mod/Spreadsheet/App/SheetPyImp.cpp | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/src/Mod/Spreadsheet/App/SheetPyImp.cpp b/src/Mod/Spreadsheet/App/SheetPyImp.cpp index 61732db9a..f1f9c9d2f 100644 --- a/src/Mod/Spreadsheet/App/SheetPyImp.cpp +++ b/src/Mod/Spreadsheet/App/SheetPyImp.cpp @@ -869,20 +869,5 @@ PyObject *SheetPy::getCustomAttributes(const char* attr) const int SheetPy::setCustomAttributes(const char* attr, PyObject* obj) { - // Parse attr; if it looks like a cell address specifier, it probably is... - char *contents; - - if (!PyArg_ParseTuple(obj, "s:setCustomAttributes", &contents)) - return 0; - - try { - CellAddress address(attr); - - getSheetPtr()->setCell(address, contents); - return 0; - } - catch (const Base::Exception & e) { - PyErr_SetString(PyExc_ValueError, e.what()); - return 0; - } + return 0; }