Spreadsheet: fix header uniformity

+ trailing whitespace
This commit is contained in:
luzpaz
2023-01-21 18:55:54 +00:00
committed by Uwe
parent 115b6e6bce
commit be64da3de5
15 changed files with 65 additions and 65 deletions

View File

@@ -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);