+ better check for opening a transaction when removing an object from document

This commit is contained in:
wmayer
2013-08-15 16:47:56 +02:00
parent e1b4fc60ac
commit 0900025e2d
4 changed files with 26 additions and 9 deletions

View File

@@ -102,6 +102,12 @@ int Transaction::getPos(void) const
return iPos;
}
bool Transaction::hasObject(DocumentObject *Obj) const
{
std::map<const DocumentObject*,TransactionObject*>::const_iterator it;
it = _Objects.find(Obj);
return (it != _Objects.end());
}
//**************************************************************************
// separator for other implemetation aspects