[commit] r1086 - trunk/GME/Core
GMESRC Repository Notifications
gme-commit at list.isis.vanderbilt.edu
Mon Nov 15 13:35:29 CST 2010
Author: lph
Date: Mon Nov 15 13:35:29 2010
New Revision: 1086
Log:
CCoreDataAttribute get_PreviousValue now returns last committed value instead of last set value.
Modified:
trunk/GME/Core/CoreAttribute.cpp
Modified: trunk/GME/Core/CoreAttribute.cpp
==============================================================================
--- trunk/GME/Core/CoreAttribute.cpp Mon Nov 15 13:31:47 2010 (r1085)
+++ trunk/GME/Core/CoreAttribute.cpp Mon Nov 15 13:35:29 2010 (r1086)
@@ -1535,8 +1535,13 @@
if( IsDirty() )
{
- ASSERT( values.size() >= 2 );
- UserCopyTo(*(++values.begin()), p);
+ // lph: Return last committed value. Previously returned last set value (commented below).
+ ICoreStorage *storage = SetStorageThisAttribute();
+ ASSERT( storage != NULL );
+ storage->get_AttributeValue(p);
+
+ //ASSERT( values.size() >= 2 );
+ //UserCopyTo(*(++values.begin()), p);
}
else
{
More information about the gme-commit
mailing list