source typo fixes pt1 (only on py3 merged code)
issue 0002914
This commit is contained in:
@@ -711,7 +711,7 @@ void Sheet::recomputeCell(CellAddress p)
|
||||
if (cell)
|
||||
cell->setException(e.what());
|
||||
|
||||
// Mark as erronous
|
||||
// Mark as erroneous
|
||||
cellErrors.insert(p);
|
||||
}
|
||||
|
||||
@@ -800,7 +800,7 @@ DocumentObjectExecReturn *Sheet::execute(void)
|
||||
while (i != VertexList.end()) {
|
||||
Cell * cell = cells.getValue(i->first);
|
||||
|
||||
// Mark as erronous
|
||||
// Mark as erroneous
|
||||
cellErrors.insert(i->first);
|
||||
|
||||
if (cell)
|
||||
@@ -1164,7 +1164,7 @@ std::string Sheet::getAddressFromAlias(const std::string &alias) const
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Determine whether a given alias candiate is valid or not.
|
||||
* @brief Determine whether a given alias candidate is valid or not.
|
||||
*
|
||||
* A candidate is valid is the string is syntactically correct,
|
||||
* and the alias does not conflict with an existing property.
|
||||
|
||||
@@ -102,7 +102,7 @@ class MathParser:
|
||||
denominator = self.parseParenthesis()
|
||||
if denominator == 0:
|
||||
raise ZeroDivisionError(
|
||||
"Division by 0 kills baby whales (occured at index " +
|
||||
"Division by 0 kills baby whales (occurred at index " +
|
||||
str(div_index) +
|
||||
")")
|
||||
values.append(1.0 / denominator)
|
||||
@@ -1007,7 +1007,7 @@ def makeSpreadsheetController(spreadsheet,cell=None,direction=None):
|
||||
|
||||
def makeSpreadsheetPropertyController(spreadsheet,object=None,prop=None,cell=None):
|
||||
"""makeSpreadsheetPropertyController(spreadsheet,[object,prop,cell]): adds a
|
||||
property controller, targetting the given object if any, to the given spreadsheet.
|
||||
property controller, targeting the given object if any, to the given spreadsheet.
|
||||
You can give a property (such as "Length" or "Proxy.Length") and a cell address
|
||||
(such as "B6")."""
|
||||
obj = FreeCAD.ActiveDocument.addObject("App::FeaturePython","PropertyController")
|
||||
|
||||
@@ -736,7 +736,7 @@ class SpreadsheetCases(unittest.TestCase):
|
||||
self.assertIn('Up-to-date',sketch.State)
|
||||
|
||||
def testCrossDocumentLinks(self):
|
||||
""" Expressions accross files are not saved (bug #2442) """
|
||||
""" Expressions across files are not saved (bug #2442) """
|
||||
|
||||
# Create a box
|
||||
box = self.doc.addObject('Part::Box', 'Box')
|
||||
|
||||
@@ -339,7 +339,7 @@ def handleCells(cellList, actCellSheet, sList):
|
||||
if refType:
|
||||
cellType = getText(refType.childNodes)
|
||||
else:
|
||||
cellType = 'n' # fix me some cells dont have t and s attributes
|
||||
cellType = 'n' # FIXME: some cells don't have t and s attributes
|
||||
|
||||
#print("reference: ", ref, ' Cell type: ', cellType)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user