App: replace three boolean of CellAddress::toString() with a bitmask of enums

This commit is contained in:
wmayer
2022-01-08 19:37:24 +01:00
committed by wwmayer
parent 06144dd944
commit ce05165f21
5 changed files with 33 additions and 19 deletions

View File

@@ -307,7 +307,7 @@ bool ObjectIdentifier::verify(const App::Property &prop, bool silent) const {
const std::string &name = components[result.propertyIndex].getName();
CellAddress addr;
bool isAddress = addr.parseAbsoluteAddress(name.c_str());
if((isAddress && addr.toString(true) != prop.getName()) ||
if((isAddress && addr.toString(CellAddress::Cell::ShowRowColumn) != prop.getName()) ||
(!isAddress && name!=prop.getName()))
{
if(silent) return false;