Fix build error on MacOSX

This commit is contained in:
wmayer 2013-02-25 11:57:11 +01:00
parent 5f43ef1a2a
commit c08f8abc98

View File

@ -234,13 +234,16 @@ void TransactionObject::applyChn(Document & /*Doc*/, DocumentObject * /*pcObj*/,
{
if (status == New || status == Chn) {
// apply changes if any
if(!Forward){
if (!Forward) {
std::map<const Property*,Property*>::const_reverse_iterator It;
for (It=_PropChangeMap.rbegin();It!=_PropChangeMap.rend();++It)
std::map<const Property*,Property*>::const_reverse_iterator rendIt = _PropChangeMap.rend();
for (It = _PropChangeMap.rbegin(); It != rendIt; ++It)
const_cast<Property*>(It->first)->Paste(*(It->second));
}else{
}
else {
std::map<const Property*,Property*>::const_iterator It;
for (It=_PropChangeMap.begin();It!=_PropChangeMap.end();++It)
std::map<const Property*,Property*>::const_iterator endIt = _PropChangeMap.end();
for (It = _PropChangeMap.begin(); It != endIt; ++It)
const_cast<Property*>(It->first)->Paste(*(It->second));
}
}