add method to check if an open transaction is empty
This is needed to avoid to incorrectly abort a transaction if a recompute was done between opening and closing an editor in the property view
This commit is contained in:
@@ -110,6 +110,11 @@ void Transaction::Restore(Base::XMLReader &/*reader*/)
|
||||
assert(0);
|
||||
}
|
||||
|
||||
bool Transaction::isEmpty() const
|
||||
{
|
||||
return _Objects.empty();
|
||||
}
|
||||
|
||||
int Transaction::getPos(void) const
|
||||
{
|
||||
return iPos;
|
||||
|
||||
Reference in New Issue
Block a user