Spreadsheet: fix header uniformity
+ trailing whitespace
This commit is contained in:
@@ -152,7 +152,7 @@ void DlgBindSheet::accept()
|
||||
if(!doc)
|
||||
FC_THROWM(Base::RuntimeError, "Cannot find document " << docname);
|
||||
obj = Base::freecad_dynamic_cast<Sheet>(doc->getObject(sep+1));
|
||||
} else
|
||||
} else
|
||||
obj = Base::freecad_dynamic_cast<Sheet>(sheet->getDocument()->getObject(ref));
|
||||
if(!obj)
|
||||
FC_THROWM(Base::RuntimeError, "Cannot find Spreadsheet '" << ref << "'");
|
||||
@@ -180,13 +180,13 @@ void DlgBindSheet::accept()
|
||||
checkAddress(fromEnd, fromCellEnd, false);
|
||||
|
||||
std::string toStart(ui->lineEditToStart->text().trimmed().toLatin1().constData());
|
||||
if(boost::starts_with(toStart,"="))
|
||||
if(boost::starts_with(toStart,"="))
|
||||
toStart.erase(toStart.begin());
|
||||
else
|
||||
checkAddress(toStart, toCellStart, true);
|
||||
|
||||
std::string toEnd(ui->lineEditToEnd->text().trimmed().toLatin1().constData());
|
||||
if(boost::starts_with(toEnd,"="))
|
||||
if(boost::starts_with(toEnd,"="))
|
||||
toEnd.erase(toEnd.begin());
|
||||
else {
|
||||
checkAddress(toEnd, toCellEnd, true);
|
||||
|
||||
Reference in New Issue
Block a user